x


Movie orientation wrong with iOS4

When testing our game on iOS4 the orientation went from landscape to portrait no matter how we hold the phone (and unity is configured to Landscape Left). Has anyone else seen this problem and maybe has a solution?

Okay, let's try with a bounty. But I'm not looking for 'record movie in landscape' or do it in Objective-C as answer, those two options I've already considered and are would prefer to not solve it this way.

more ▼

asked Jun 16 '10 at 11:34 AM

Jaap Kreijkamp gravatar image

Jaap Kreijkamp
6.4k 20 26 70

seems a bug, you might wait for unity to fix it. they will do a quick fix surely. apple always breaks compatibility wildly! :)

Jun 21 '10 at 06:32 AM Ashkan_gc

Sure wish I could answer that question. I would love those reputation points XD.. I guess no one knows the answer.

Jun 21 '10 at 11:12 PM Pirate___man

Yeah, it's either a bug in Unity or in iOS4 but hoped to have an easy workaround as we try to finish the game in a few weeks (revoltgame.info in case you want to know :-).

Jun 21 '10 at 11:13 PM Jaap Kreijkamp
(comments are locked)
10|3000 characters needed characters left

3 answers: sort voted first

Assuming you're using Unity iPhone Advanced, you could easily write your own movie playback method. Just make sure to call UnityPause() before you start playing back your movie.

Here's a blog post that goes into detail about the changes in the movie player controller between 3.2 and 4.0

http://iphonedevelopertips.com/video/getting-mpmovieplayercontroller-to-cooperate-with-ios4-3-2-ipad-and-earlier-versions-of-iphone-sdk.html

more ▼

answered Jul 09 '10 at 04:10 AM

Tetrad gravatar image

Tetrad
7.2k 27 37 89

It sucks, but it looks like I have to solve it in Objective-C after all, thanks for the UnityPause() hint, though.

Jul 29 '10 at 03:01 AM Jaap Kreijkamp

Did you get the objective-c solution?

Jun 06 '11 at 10:54 AM David
(comments are locked)
10|3000 characters needed characters left

It seems to be a bug in Unity iPhone.

If it weren't for the fact you want to release the game in a few weeks, I'd suggest waiting until Unity 3.0 which most likely fixes the iOS4 issues.

Since you probably can't hold off that long, your best bet may be to try get in touch with Unity Tech and see if they can supply a version with a fixed orientation mode, mentioning that there are time constraints.

If that doesn't work, well, you could always record the movie in landscape ;) (Sorry, couldn't resist)

more ▼

answered Jun 25 '10 at 01:24 AM

Mike 3 gravatar image

Mike 3
30.5k 10 65 253

Unity 3.0 beta 4 doesn't solve it yet, so guess I have to write a solution in Objective C after all. Recording movie in landscape will break pre iOS4 devices (or I need to supply both movies and select the right one based on iOS version, but that vastly increases size).

Jul 29 '10 at 02:59 AM Jaap Kreijkamp
(comments are locked)
10|3000 characters needed characters left

Yep I have this problem too. Don't know how to fix it, but I sure would like to :)

more ▼

answered Jun 17 '10 at 09:50 PM

Russ Menapace gravatar image

Russ Menapace
46 3 3 3

It would have been a lot better if you had made this post a comment

Jun 22 '10 at 03:26 PM Pirate___man
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x124
x117
x14

asked: Jun 16 '10 at 11:34 AM

Seen: 2022 times

Last Updated: Jun 06 '11 at 10:54 AM