Log in or register to post comments

Unity iOS: Set Orientation for Handheld.PlayFullScreenMovie

September 28, 2013 - 6:42am #1

Hi,

I am using following code to quickly switch from Portrait to landscape before playing video in ARCamera scene and then again back to portrait after video playing done.

    IEnumerator playVideo() {
            Screen.orientation = ScreenOrientation.Landscape;
            yield return new WaitForSeconds(.1f);
            yield return new WaitForEndOfFrame();
            Handheld.PlayFullScreenMovie (background_.lastTrackableVideoPath_, Color.black, FullScreenMovieControlMode.Full, FullScreenMovieScalingMode.AspectFit);
            Screen.orientation = ScreenOrientation.Portrait;
            yield return new WaitForSeconds(.1f);
        }

Above code is not working and video is always played in portrait. I have iOS 6.0.
 

Any idea why this is happening?

Unity iOS: Set Orientation for Handheld.PlayFullScreenMovie

September 30, 2013 - 5:28am #2

This is a Unity issue - nothing to do with Vuforia.

Have you investigated the VideoPlayback sample which uses a custom library rather than Handheld.PlayFullScreenMovie?

N

Log in or register to post comments