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
everytime when I try
UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
The 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.