iPhone iOS4 and Unity 1.7 video (portrait) playback issue

Hey guys,

We have a new game ready that includes a video intro. We built it using the final OS4 SDK from Apple and Unity 1.7.

However when running on an OS4 device (3GS), the video playback is by default in Portrait mode. (Our game is in landscape mode)

If you run the same build compiled with OS4 SDK on another device using 3.1.3 it shows correctly in Landscape mode.

Another game we did a few months ago that was compiled using a 3.x SDK is also showing correctly on the 3GS running iOS4.

Any work around? did anyone else got that issue?

My problem also existed with builds from earlier OS versions, so I’m surprised to find that your 3.x build works normally on OS4.

Are there any difference at all between the video file that works, and the one that does not?

Nö Solution for that but Unit 1.7 has this Imitation concerning iPad. Seems to Be the Same. Only work around is to output your Video rotated.
You Might want to this Kind of stuf in Xcode, Outside of Unity.

Hi!

I’m having this problem too.
Maybe I could check if the user has iOS3.13, or iOS4, and include two different movie files (one normal and one rotated).

I found this in the scripting reference:
iPhoneSettings.systemVersion, which seems to be a string value.

Could anyone please tell me how to check for anything below iOS 3.2? (what’s the correct syntax)

Also, if you find any better solution, please share.

Thanks a lot,
Bogdan

I think I may have found a way to circumvent this problem for people that aren’t using the on screen keyboard feature.

I found that commenting the following line in AppController.mm resolved the video rotation issue for my 2nd Generation iPod Touch running OS 4:

iphone::KeyboardOnScreen::Init();

I’ve also noticed that the accelerometer is a little funky in general. Since I don’t use this feature I commented all code that registers or executes any acceleration as well. Works like a charm now, but I doubt my application still registers which way is up.

EDIT: The only additional problem I’ve noticed is that you’ll be able to rotate the video around while it plays.

EDIT: Confirmed that this also works on 3GS running OS 4

Yeah, I’ve only recently discovered that my game that was published months ago before iOS4 and relies heavily on videos is now stuffed, as people who have upgraded to iOS4 or have an iPad get everything sideways. I didn’t discover it for ages as I’m on an original 3G iPhone and waited for things to settle down and get patched before upgrading to iOS4.

I’m taking the gamble of just rotating everything to be OS4 compliant rather than having dual videos. Hopefully nobody will complain that their old OS device now makes things look wrong… :expressionless:

I have same issue.
iOS4…how to fix it?

@Minevr: are you using an iPad for testing? There is still a bug with iPad video orientation (case 387158) but we believe the other devices should work OK. If you are getting this problem with an iPhone or iPod touch then please can you report it and state that it may be related to case 387158.

@andeeee :

I using iPhone4(ios 4.*), Video is auto rotate,I want fix it,do’t need rotate.I just need to Landscape.

ps:On iPhone3g(ios 3.2) is ok…

Thanks.

unity 3.3 still…