how can I disable auto-rotation when I use playVideo ?

how can I disable auto-rotation when I use playVideo ?

thanks. [import]uid: 21680 topic_id: 16375 reply_id: 316375[/import]

Hi jason

if your app is also locked to one orientation you can use daily build 622:

“Android: Modified media.playVideo() to use the same orientation settings as the app. (Example: If app is locked to landscape, then video player locks to landscape.)”

If you need your app to change orientation and the video to be locked - it is not possible yet.
[import]uid: 13632 topic_id: 16375 reply_id: 61078[/import]

hi, ojnab,

locked to one orientation means the setting of build.settings ?

my setting like this, but not work:

[code]
settings = {

orientation =
{
default = “landscapeRight”,
supported =
{
“landscapeRight”,
},
},
iphone =
{
plist =
{
UIInterfaceOrientation = “UIInterfaceOrientationLandscapeRight”,

UISupportedInterfaceOrientations =
{
“UIInterfaceOrientationLandscapeRight”
},

UIApplicationExitsOnSuspend = false,
UIStatusBarHidden = true,
UIPrerenderedIcon = true

}
}
}

[/code] [import]uid: 21680 topic_id: 16375 reply_id: 61080[/import]

I do like this:

[lua]settings = {

orientation =
{
default = “landscape”,
},

} [import]uid: 13632 topic_id: 16375 reply_id: 61084[/import]

hi, ojnab,

I fixed the code, but it’s not work.

can this work on iphone ? or just on android ? [import]uid: 21680 topic_id: 16375 reply_id: 61086[/import]

Oh… Yes sorry it’s only on android. [import]uid: 13632 topic_id: 16375 reply_id: 61094[/import]