MPMoviePlayerController 全屏锁定

发布于 2024-09-25 03:11:52 字数 486 浏览 6 评论 0原文

我有一个关于 MPMoviePlayerController 的奇怪错误。如果我在视频播放(横向)时执行反向捏合手势(将两个触摸位置分开),视频会切换到纵向模式,广播 MPMoviePlayerWillEnterFullscreenNotificationMPMoviePlayerDidEnterFullscreenNotification 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沫雨熙 2024-10-02 03:11:52

您是否尝试过将 controlStyle 属性更改为 MPMovieControlStyleNone ?

Have you tried changing controlStyle property to MPMovieControlStyleNone?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文