MPMoviePlayerController 问题
在我们的 iPad 应用程序中,视频流正在播放器视图中播放。播放器视图有一个按钮可以转到新视图(当用户单击此按钮时,我将新视图推送到导航控制器中)。新视图有一个后退按钮,可以返回到玩家视图。
要求是即使用户单击按钮推送新视图,视频也应继续播放,并且现在新视图对用户可见,以告诉用户视频仍在播放。
这很好用。当我进入新视图并且我没有释放我的播放器时,我可以听到音频。但是,如果我在新视图上停留大约 2 分钟,然后按后退按钮转到播放器视图,音频就会正确继续。但视频只是快进了 2 分钟内经过的帧,然后来到当前视频帧。
谁能建议为什么会发生这种情况?
In our iPad app, a video stream is playing in a player view. The player view has a button to go to a new view (I push the new view in the navigation controller when user clicks this button). The new view has a back button to go back to the player view.
The requirement is that the video should continue to play even though the user clicks the button to push the new view and now the new view is visible to the user to tell the user the video is still playing.
This works fine. I can hear the audio when I go to the new view and I am not releasing my player. However, if I stay on the new view for about 2 minutes and then hit the back button to go to the player view, the audio continues correctly. But the video just fast forwards the frames that have gone by in the 2 minutes and then comes to the current video frame.
Can anyone please suggest why this could be happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当用户单击按钮进入新视图时,您可以尝试 addSubView 而不是推送新视图。
我通过这种方式解决了我的类似问题。
You can try addSubView rather than pushing a new view when user clicks on button to go on new view.
I solved my similar problem by this way.