我做了什么?iOS - 视频不能仅在iOS7上通过iPhone旋转?
我在玩视频在扩展类的MPMoviePlayerViewController和已实施定向功能如下
- (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;
}
我现在面临什么问题?
应用程序在iPhone和iPad上的iOS6上运行良好Almong使用iPad(使用iOS7),但视频不通过安装iOS7的iPhone旋转。
这种问题的原因是什么以及如何解决?
更新
我发现,在影片结束旋转如果
setMovieSourceType
是 设置为MPMovieSourceTypeUnknown
但是,当设置为 `MPMovieSourceTypeStreaming
您的结论听起来像是MediaPlayer框架中的一个错误(又一个错误)。我强烈建议使用最小化的示例提交错误报告。 – Till
@Till这似乎是一个不错的选择,但我在哪里发送错误报告。我的意思是发送电子邮件到苹果或在苹果论坛发帖? –
关于[苹果网站bug雷达服务](https://bugreport.apple.com)。另外,在[OpenRadar](http://openradar.appspot.com/)上也可能是一个好主意。 – Till