What i have Done?
I am playing videos in an extended class of MPMoviePlayerViewController and have implemented orientation functions as follows
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
if (toInterfaceOrientation == UIInterfaceOrientationPortraitUpsideDown){
return FALSE;
}
else{
return TRUE;
}
}
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
[self setControlsPositions:toInterfaceOrientation];
}
-(BOOL)shouldAutorotate
{
return YES;
}
What issue i am Facing?
The application works fine up till iOS6 on Both iPhone and iPad Almong with iPad (with iOS7) but the video does not rotate over iPhone with iOS7 installed.
What is the reason for such issue and how it can be resolved?
Update
I have found that the video does rotates if
setMovieSourceType
is set toMPMovieSourceTypeUnknown
but does not rotate when set to `MPMovieSourceTypeStreaming