Log in or register to post comments

autorotate video playback in unity (android)

November 27, 2014 - 2:54am #2


I am using video sample 3.0.7 in Unity 4.5.0. Augmentation and video playback is fine but when I play the video in fullscreen it does not autorotate. In Unity app settings default orientation of app is portrait. In former SDK samples also I used to keep orientation portrait only but still autorotate worked.

In older version of samples, autorotate used to work automatically.

In "VideoPlaybackUIEventHandler" there is a function, "OnTappedOnFullscreenButton" which has,

                    Screen.orientation = ScreenOrientation.LandscapeLeft;

I commented out this piece of code but it is still not working.

How do I solve this issue?


autorotate video playback in unity (android)

December 1, 2014 - 8:55pm #1

Can you post a screenshot of what the video looks like on your device? Which device and OS version are you using? Does auto-rotate work correctly if you try the precompiled videoplayback-3-0-9.apk sample app?

Log in or register to post comments