Video Orientation (enforce 'landscape')

Hi there,

My question is, can I enforce video to play in landscape orientation?

I’ve been working on a new app that has a library of videos. I’ve gone to great lengths to make sure the video is exactly 480 (width) x 320 (height), which fits perfectly on the iPhone screen. This is working great in my app.

However, can I enforce the video to play in this landscape orientation? If the user holds the iPhone straight up (i.e. portrait) the iPhone reorientates the video, and it is shown very small in the middle of the screen. If the user holds the iPhone on it’s side (i.e. landscape) then the video is perfectly sized.

I’d much rather be in control of this. I know it will be obvious to some users to orientate to the iPhone on it’s side but I’d rather make the decision for them and ‘lock’ the video to landscape.

There’s nothing that I can see in the API about this.

Thank you for any tips,

Paul

P.S. How will this app look on the iPad playing 480 (width) x 320 (height) video? [import]uid: 26027 topic_id: 7398 reply_id: 307398[/import]

I’m also interested in this, to show a WebPopup instead of a video in Landscape mode. Can anyone help ? [import]uid: 33856 topic_id: 7398 reply_id: 26231[/import]

any solution? [import]uid: 96683 topic_id: 7398 reply_id: 76400[/import]

Wondering the same thing. My problem is a bit different in that it is only portrait compatible, but I’d like to still be able to view videos in landscape mode - similar to how youtube allows you to watch them in full screen without actually supporting a landscape mode for their app.

Youtube probably have code written directly in java so they can manipulate os interfece freely.

Corona is graphics sdk meaning it runs opengl application inside native window/thread. This make Corona interaction with os interface restricted because of os restriction which do not allow such apps to have full access. Corona uses as much as it can of it but there are limitions. Media.playVideo() is function which plays video by opening os native player. However as it is external player for Corona application, Corona have very limited access which is just calling player with parameters such as video path or so…

Wondering the same thing. My problem is a bit different in that it is only portrait compatible, but I’d like to still be able to view videos in landscape mode - similar to how youtube allows you to watch them in full screen without actually supporting a landscape mode for their app.

Youtube probably have code written directly in java so they can manipulate os interfece freely.

Corona is graphics sdk meaning it runs opengl application inside native window/thread. This make Corona interaction with os interface restricted because of os restriction which do not allow such apps to have full access. Corona uses as much as it can of it but there are limitions. Media.playVideo() is function which plays video by opening os native player. However as it is external player for Corona application, Corona have very limited access which is just calling player with parameters such as video path or so…