电影结束后如何保持MPMoviePlayerController打开? [英] How to keep MPMoviePlayerController open after movie ended?

查看:38
本文介绍了电影结束后如何保持MPMoviePlayerController打开?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我使用MPMoviePlayerController在我的iPhone应用程序中播放视频,它将打开,加载电影,播放然后关闭.是否可以在影片结束后强制其保持打开状态,以便用户可以使用其控件而不是在父视图中使用控件来重放它?另外,是否可以在暂停模式下启动MPMoviePlayerController?

If I use MPMoviePlayerController to play video in my iPhone app, it opens, loads the movie, plays it and then closes. Is it possible to force it to stay open after the movie finishes, so that user can replay it using its controls, instead of using controls in parent view? Also, is it possible to start MPMoviePlayerController in the paused mode?

感谢您的任何建议.

推荐答案

使用3.2之前的操作系统中的可用API都无法实现.您可以做的一件事是对最后一帧进行快照,然后将其粘贴在电影后面,以便在完成播放后看起来仍然还在,然后只需按一下按钮即可重播.您可以根据需要创建一个外观/行为类似于标准电影播放器​​界面的界面,只是用于播放按钮.

None of that is possible using the available API in the Pre-3.2 OS. One thing you could do is take a scerenshot of the last frame and stick that behind the movie so when it's done playing, it looks like it's still there, then just stick a button on it to replay. you could make an interface that looks/behaves similar to the standard movie player interface just for the play button if you need to.

这篇关于电影结束后如何保持MPMoviePlayerController打开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆