Os4 movie playback

I’m trying to get movies to play in landscape mode in os4. so far the only solution (thanks to the people on this forum) has been to create an additional .mov file that is rotated 90 degrees and to have it play if os4 is detected. i got it working using this

function Start () {
    yield new WaitForSeconds (1);

    var movieName = "intro"
        + ( iPhoneSettings.systemVersion.IndexOf("4.") != -1 ? "_4x" : "" )
        + ".mov";
    iPhoneUtils.PlayMovie( movieName, Color.black, iPhoneMovieControlMode.CancelOnTouch);
    Application.LoadLevel ("Menus");
}

the problem is that after the .mov plays it shows the last frame of the previous scene and it doesn’t fade in or out. this works fine when loaded onto a device with os 3. is anyone else having this problem?

thanks…

There is another solution. Comment out the keyboard in the Appcontroller.mm file in Xcode. You will not need to have a 2nd .mov just your normal mov. No special script. But you disable the keyboard.

thanks… that sounds a lot easier and cleaner, i’ll give it a shot

Here is the code you need to comment out:

iphone::KeyboardOnScreen::Init();

Just do a command F search in xCode after you build your game for that code. Then comment it out.

Note: If you rebuild your game and do not select amend, it will revert the AppController.mm file back.

thanks again

that trick did’t do the job for me. I am using unity 3 and the latest xcode