【发布时间】:2013-10-06 07:16:02
【问题描述】:
我做了什么?
我在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 Almong 和 iPad(使用 iOS7)上运行良好,直到 iOS6,但视频不会在安装了 iOS7 的 iPhone 上旋转。
出现此类问题的原因是什么以及如何解决?
更新
我发现如果
setMovieSourceType是 设置为MPMovieSourceTypeUnknown,但设置为时不旋转 `MPMovieSourceTypeStreaming
【问题讨论】:
-
您的结论显然听起来像是 MediaPlayer 框架中的一个错误(又一个错误)。我强烈建议使用您的最小化示例提交错误报告。
-
@Till 这似乎是一个不错的选择,但我在哪里发送错误报告。我的意思是给苹果发邮件或者在苹果论坛发帖?
-
在apple website bug radar service。此外,在OpenRadar 上提交该文件可能是一个好主意。
-
+1 使问题清晰,标题正确
-
请同时提交一份关于 OpenRadar 的报告,并让我们知道使用了哪个 ID。这将有助于确保开发者社区在任何进展上获得一定的透明度(否则无法直接通过 Apple 获得)。
标签: ios media-player ios7 mpmovieplayercontroller mpmovieplayer