Hi Joshua,
Yes, the simple fix of making the video orientation match the Corona app’s orientation would be very helpful. Thank you for the follow-up! Any sense of a rough ballpark of when these items might be addressed? [import]uid: 91662 topic_id: 3608 reply_id: 57010[/import]
I’ve just made the orientation change today. You’ll see it in the next daily build.
valmih, we don’t have an ETA on when we’ll fix the other video player issues yet. We’ll try to fit it in when we have time. Hopefully, today’s video player changes can hold you over. [import]uid: 32256 topic_id: 3608 reply_id: 57022[/import]
Great. Thanks a lot [import]uid: 13632 topic_id: 3608 reply_id: 57050[/import]
tested the fix in daily build 622
works great with my project… thanks [import]uid: 13632 topic_id: 3608 reply_id: 57251[/import]
Hello everyone,
I just found this topic, and ten months later I’m still struggling and not able to hide the video controls. Any news about this issue? My app kinda depends on it
[import]uid: 98287 topic_id: 3608 reply_id: 64524[/import]
Everyone,
You’ll be able to hide the video player’s controls on Android starting with build #653. [import]uid: 32256 topic_id: 3608 reply_id: 64794[/import]
Excellent! Thank you so much!
If I can just draw your attention to another problem I’m having, maybe you can put this on your to-do list as well.
I’m working with Director Class, and I have some chapter transitions that are triggered by a sound, like so:
[lua]local onComplete = function(event)
director:changeScene(“screen2”)
return true
end
media.playSound( “mysound.wav”, onComplete )[/lua]
and some that SHOULD be triggered by a video:
[lua]local onComplete = function(event)
director:changeScene(“screen2”)
return true
end
media.playVideo( “myvideo.mov”, onComplete )[/lua]
…and it works perfectly with the sound files, but doesn’t work with the video files. The video finishes playing, and then just stays on screen1. My feeling is that it’s some kind of a timing issue - that the command doesn’t have time to register before the app goes to the video player.
Anything you can do about it in the foreseeable future?
[import]uid: 98287 topic_id: 3608 reply_id: 64904[/import]
I think the issue here is that playing a video on Android causes the Corona app to suspend itself, which may be preventing your transition animation. We can’t prevent the suspend because there’s no concept on Android of when the user leaves an app, only when the user leaves the activity/window. That said, the Corona activity resumes when the video ends.
So, perhaps the onComplete event is coming before the onResume event? Are you handling the onResume event and doing anything special there? You may want to put print statements in those event handlers and run “adb logcat” to see what’s going on. Anything you can do to help narrow this down and make it easy to reproduce would be a big help. Thanks! [import]uid: 32256 topic_id: 3608 reply_id: 64911[/import]
I remember having the same problem some time ago.
I think I solved it by putting in a small delay before changing scene with director.
Like this:
[lua]local onComplete = function(event)
local function listener()
director:changeScene(“screen2”)
end
timer.performWithDelay ( 500, listener )
return true
end
media.playVideo( “myvideo.mov”, onComplete ) [import]uid: 13632 topic_id: 3608 reply_id: 64921[/import]
Thank you guys! Your advice plus the new build really saved me!
If I can just abuse your patience one last time - my video sometimes appears in a cut, and sometimes slides in from the side, which looks pretty bad. Any way I can control that? [import]uid: 98287 topic_id: 3608 reply_id: 65281[/import]
Okay. I removed the slide transition animation when the video player is displayed to better match how it work on iOS. This change will be made available in build #655.
I don’t normally let feature requests such as this cut in line in front of others, but that was such an easy change.
[import]uid: 32256 topic_id: 3608 reply_id: 65290[/import]
Whoa, express service. I am speechless. O_o [import]uid: 98287 topic_id: 3608 reply_id: 65293[/import]
Aha, but the video still slides OUT sideways instead of disappearing. [import]uid: 98287 topic_id: 3608 reply_id: 65820[/import]
Locking the video orientation to the orientation of the app is a bad solution. Why can’t there be a setting where this is either true or false? I had an app that is only in portrait but has videos that need to be viewed in either portrait or landscape. Now that it is locked we’ve got an issue. The client wants the videos to have both orientations.
Please create a setting or change the API call so that the user can determine if the video should be locked in the application orientation or not.
Thanks. [import]uid: 86668 topic_id: 3608 reply_id: 66270[/import]
Please see my comment (#33). The locked orientation is actually a big issue for me. [import]uid: 86668 topic_id: 3608 reply_id: 66283[/import]
I hate to be a nag after you’ve been so helpful, but the video still disappears with a slide-out effect. Will you have time to fix it soon? [import]uid: 98287 topic_id: 3608 reply_id: 66297[/import]
if you use daily build 621 the orientation is not locked.
But maybe you will miss other stuff that was added later in the daily builds.
I agree it would be nice to be able to turn the orientation lock on off.
see last post in this thread: https://developer.anscamobile.com/forum/2011/09/27/android-video-download [import]uid: 13632 topic_id: 3608 reply_id: 66305[/import]
dshneor,
I won’t have time to address the slide-out issue this week. Removing the transition back to the Corona screen will be a lot more work compared to the transition to the video which was a 1 line code change.
insider,
The ability to control the orientation of the video is on our to-do list, but it’s not going to happen by this coming release. The reason is because adding new settings to the API requires us to implement the feature on all platforms, making it more than a 1 man job. The biggest reason being that we would have to rewrite our video player for iPhone/iPod because it currently only supports landscape. I apologize if you don’t like the new video orientation behavior, but since most other developers seem to like it so far, we plan on sticking with it. That said, the release version of Corona (build #591) supports the automatic orientation changes that you want. [import]uid: 32256 topic_id: 3608 reply_id: 66306[/import]
The iphone side handles the video orientation beautifully. Why can’t the android side perform the same way the iphone one does. You don’t need a new setting. You just need to do what the user expects. The whole point of having a unified platform is so we shouldn’t have to worry about headaches like the orientation on android and not iphone. Setting or No Setting Make them both behave the same.
[import]uid: 39480 topic_id: 3608 reply_id: 67558[/import]
dshneor,
We fully got rid of the slide animation in the newest daily build.
insider, tim,
The newest version of the Corona SDK no longer locks the video player to the same orientation as the app. The video now always supports orientation changes, matching the iOS video player behavior. Out of consequence, there is no longer a way to lock the video orientation either, but we’ll have to add a new API later to support that so that we can do the same on iOS. Oh and please use the newest daily build. The release version, build #704, no longer locks the video player orientation either, but it has a bug where it does not automatically resize the video to fit the screen on orientation change on some Android devices such as the Vizio tablet. This bug was fixed in the newest daily build. [import]uid: 32256 topic_id: 3608 reply_id: 74468[/import]