Video Orientation on iOS

Hi.

Is it actually possible to set the video orientation when you play it, besides setting it up from the build.setting ?

i have been trying to create a multi-app that launches an introductory video before launching the app, but i got some problems while the video is playing. 

I have set the orientation to (‘landscapeLeft’, ‘landscapeRight’), and it works for other iOS devices, but it only get problematic on iPhone/iPod  4 devices below, it still able to play the video in portrait mode.

has anyone been able to find a workaround?

no one?

There are 2 calls for playing video. what di you refere to?

the media.playVideo

media.playVideo( "your video here", false)

Then answer is no. This function calls native player so not good for your purpouse. Check native.newVideo()

Here’s the link:

http://docs.coronalabs.com/api/library/native/newVideo.html

sorry for the late reply. i needed a device to test on, as simulator is not supported. it is a bit tricky, does it work only on iOS?

Please read document under link mentioned above :slight_smile: there is all you need :slight_smile:

works like a charm, haven’t tried out on Android. I read some of the forums they have compability problems.

Remember that Corona is constanly getting better. A lot of things (not all due to platform specification) can be outdated or solved :slight_smile:

no one?

There are 2 calls for playing video. what di you refere to?

the media.playVideo

media.playVideo( "your video here", false)

Then answer is no. This function calls native player so not good for your purpouse. Check native.newVideo()

Here’s the link:

http://docs.coronalabs.com/api/library/native/newVideo.html

sorry for the late reply. i needed a device to test on, as simulator is not supported. it is a bit tricky, does it work only on iOS?

Please read document under link mentioned above :slight_smile: there is all you need :slight_smile:

works like a charm, haven’t tried out on Android. I read some of the forums they have compability problems.

Remember that Corona is constanly getting better. A lot of things (not all due to platform specification) can be outdated or solved :slight_smile: