在 OS 4.0 beta 上点击“完成”按钮不会关闭 MPMoviePlayerController 的视图
希望有人可以帮助我,在旧的操作系统版本 3.0 及更低版本上,点击“完成”按钮播放视频会自动关闭视图,但现在由于我们必须控制视图外观,点击“完成”只会停止电影,但是不关闭视图,我尝试检查它是否链接到任何通知,发现每次点击“完成”按钮时,都会触发 MPMoviePlayerPlaybackStateDidChangeNotification 问题是,对于暂停/播放状态的任何更改都会收到相同的通知。因此,在触发 MPMoviePlayerPlaybackStateDidChangeNotification 时关闭视图不是一个选项。有谁有这个问题的答案
谢谢你的帮助
Hope someone can help me on this, on the old OS version 3.0 and down , hitting the done button one playing a Video would automatically dismiss the view, but now since we have to control the view appearance, hitting the Done just stops the movie but does not dismiss the view, I tried to check if it was linked to any notification and found that each time the Done button was hit, MPMoviePlayerPlaybackStateDidChangeNotification is triggered the problem is that the same notification is received for any change of state pausing /playing... so dismissing the view when MPMoviePlayerPlaybackStateDidChangeNotification is triggered is not an option. does anyone have an answer for this problem
Thx for your help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
OS 4.0 beta 处于 NDA 状态,在发布之前你不应该在 SO 中谈论它,你应该将其发布在苹果开发者论坛中,如果你认为它是一个错误文件...
OS 4.0 beta is under NDA, you should not talk about it in SO till its released, you should post this in the apple developer forums, if u think its a bug file one...
iPhone OS 4.0 beta 目前正处于 NDA 状态。我建议使用开发者论坛。
但是,我会假设完成按钮会执行某些操作(如果不关闭视图本身)。检查文档以查看是否有其他委托方法或已按下完成按钮的通知,以便您可以自行关闭视图。
iPhone OS 4.0 beta is currently under NDA. I recommend using the developer forums.
However, I will assume the done button does something if not dismiss the view itself. Check the documentation to see if there is another delegate method or notification that the done button has been pressed so you can dismiss the view yourself.