Why can't I retrieve UIDeviceOrientation correctly while playing a movie in MPMoviePlayerController?
Posted
by Zelldweller
on Stack Overflow
See other posts from Stack Overflow
or by Zelldweller
Published on 2010-06-07T12:38:01Z
Indexed on
2010/06/07
12:42 UTC
Read the original article
Hit count: 495
Everything works fine while I'm not playing anything (I'm calling beginnotifications, etc, and using the orientation to rotate my view). But after I start playing with MPMoviePlayerController every time I try a...
UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
...orientation gets a UIDeviceOrientationUnknown.
Any clue? When the movie stops everything works alright again. I need this orientation to rotate the player's window, because Im using Iphone OS 3.1 so I can't directly use the view property inside MPMovie player controller.
© Stack Overflow or respective owner