MPMoviePlayerController 全屏锁定
我有一个关于 MPMoviePlayerController 的奇怪错误。如果我在视频播放(横向)时执行反向捏合手势(将两个触摸位置分开),视频会切换到纵向模式,广播 MPMoviePlayerWillEnterFullscreenNotification
和 MPMoviePlayerDidEnterFullscreenNotification
code>,然后就卡住了。
此后似乎没有记录任何触摸,并且视频“卡住”播放直到完成。重新启动 MPMoviePlayerController
后,视频失败并且出现黑屏。
我曾尝试在收到 MPMoviePlayerWillEnterFullscreenNotification
后立即强制视频离开全屏模式,但没有任何运气。
我还尝试在玩家的视图上实现 UIPinchGestureRecognizer
,但无法捕获任何手势...
I have a strange bug regarding the MPMoviePlayerController
. If I do a reverse pinch gesture, (move two touch locations apart), while a video is playing (landscape), the video switches to portrait mode, broadcasts a MPMoviePlayerWillEnterFullscreenNotification
and a MPMoviePlayerDidEnterFullscreenNotification
, and is then stuck.
No touches seems to be registered after this point and the video is 'stuck' playing until it has finished. Upon relaunching the MPMoviePlayerController
, video fails and I am presented with a black screen.
I have tried forcing the video to leave fullscreen mode as soon as it received a MPMoviePlayerWillEnterFullscreenNotification
without any luck.
I have also tried to implement a UIPinchGestureRecognizer
on the player's view, but was unable to capture any gestures...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过将 controlStyle 属性更改为 MPMovieControlStyleNone ?
Have you tried changing controlStyle property to MPMovieControlStyleNone?