I have a problem with the MPMoviePlayerViewController
(I use the shortcut MPVC) playing recorded portrait movies right.
(Tested on iPhone 4S with iOS 6.0.1)
The app does this:
- Record a movie (landscape or portrait)
- Preview the movie in MPC (this time
MPMoviePlayerController
) - Upload the movie
- There is a tableView of uploaded movies, where you can watch them
- Watching the movie is done by MPVC
If I record a movie in portrait mode, the MPVC plays this video flipped to the right. Something similar happens if I record the movie in landscape mode right (home button on the left), then the movie is played upside down in MPVC. This only happens when playing the movie after uploading it! In the preview MPC, the movie just plays fine and not rotated!
I found some related SO questions involving rotated videos, but none are related explicitly to MPVC. I used this and found out that the orientation stored in the movie is perfectly correct. So portrait movies really return UIInterfaceOrientationPortrait with this Method.
So now my question is, is there a way to tell the MPVC to rotate the movie or treat it right? Or do I have to write my own player based on AVFoundation
?
Is this a MPVC bug, because the orientation information the movie provides seem to be correct?