Log in or register to post comments

video fullscreen autorotate

November 24, 2014 - 5:42am #1

Hi!

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,

#if UNITY_ANDROID
					Screen.orientation = ScreenOrientation.PortraitUpsideDown;
#endif

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

How do I solve this issue?

Thanks!

video fullscreen autorotate

December 3, 2014 - 12:00am #4

Yes. It doesn't work.. I tried this in vuforia video sample project also, it didn't work.

Autorotate works in iOS by default, although my project has built settings configured to portrait mode.

video fullscreen autorotate

December 2, 2014 - 11:53pm #3

video fullscreen autorotate

November 25, 2014 - 10:39pm #2

anyone....with the same problem??

perhaps, I have missed out some really silly thing..

moderators, could you please help?

Log in or register to post comments