如何使用iPhoneSDK的MPMoviePlayer跳转到特定时间? [英] How to jump to certain time with the MPMoviePlayer of iPhoneSDK?

查看:116
本文介绍了如何使用iPhoneSDK的MPMoviePlayer跳转到特定时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个基于iPhone的课程视频系统,我需要将幻灯片与视频的特定时间位置相关联。我发现播放视频时没有跳到某个时间位置的功能。 (或者像Joost应用程序中的自定义控件一样)
如果有人能帮助我的话,那将对我很有帮助。
提前致谢。

I am developing a iPhone based course video system, in which I need to associate slides with certain time position of the video. I have found no such function to jump to certain time position when playing a video. (Or like the custom control of that in the Joost app) It would be a great favor for me if anyone can help me with it. Thanks in advance.

推荐答案

似乎没有公共API。 MPMoviePlayerController上有一个私有API, -currentTime -setCurrentTime:,但由于这是私有的,您的应用应负责任如果您使用AppStore会被拒绝(并且您可以打开iPhone OS更新)。

It appears there is no public API for this. There is a private API, -currentTime and -setCurrentTime: on MPMoviePlayerController, but as this is private your app is liable to get rejected from the AppStore if you use it (and you open yourself up to breaking on iPhone OS updates).

这篇关于如何使用iPhoneSDK的MPMoviePlayer跳转到特定时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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