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

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

thanks.

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.

hi, ojnab,

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

my setting like this, but not work:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
settings = {        
 
        orientation =
        {
            default = "landscapeRight",
                supported =
                {
                "landscapeRight",
                },
       },
        iphone =
            {
                plist =
                {
                    UIInterfaceOrientation = "UIInterfaceOrientationLandscapeRight",
 
                    UISupportedInterfaceOrientations =
                    {
                        "UIInterfaceOrientationLandscapeRight"
                    },
 
                    UIApplicationExitsOnSuspend = false,
                    UIStatusBarHidden = true,
                    UIPrerenderedIcon = true
 
                }
            }
}

I do like this:

1
2
3
4
5
6
7
8
settings = {
 
        orientation =
        {
                        default = "landscape",
        },
 
}

hi, ojnab,

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

can this work on iphone ? or just on android ?

Oh.. Yes sorry it's only on android.

views:1346 update:2011/10/19 14:58:09
corona forums © 2003-2011