如何在iPhone应用程序中将MPMoviePlayerController转发到指定时间? [英] How to forward MPMoviePlayerController to specified time in iPhone application?

查看:75
本文介绍了如何在iPhone应用程序中将MPMoviePlayerController转发到指定时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是iPhone开发的新手,我需要播放某些链接上的视频,并且通过点按要转发电影控制器的标签,在MPMoviePlayerViewController上叠加了三个标签(例如跳转到1:20")到那个标记的时间.我已经尝试了两个函数,分别是"setCurrentTime"和"initialPlaybackTime",但是这些函数都没有给我带来结果.

I am new to iPhone development, I need to play videos which are on some link and I have overlay of three labels(like 'jump to 1:20') on the MPMoviePlayerViewController by tapping on the label the movie controller is forwarded to that labeled time. I have tried two functions namely "setCurrentTime" and "initialPlaybackTime" but none of these didn't give result for me..

一些帮助对我会非常有帮助.谢谢..

some help will be very helpful to me. thank you..

推荐答案

@property(nonatomic) NSTimeInterval currentPlaybackTime

它是MPMediaPlayback协议的一部分. http://developer.apple.com/iphone/library/documentation/mediaplayer/reference/MPMediaPlayback_protocol/Reference/Reference.html#//apple_ref/occ/intfp/MPMediaPlayback/currentPlaybackTime

It's part of the MPMediaPlayback protocol. http://developer.apple.com/iphone/library/documentation/mediaplayer/reference/MPMediaPlayback_protocol/Reference/Reference.html#//apple_ref/occ/intfp/MPMediaPlayback/currentPlaybackTime

这篇关于如何在iPhone应用程序中将MPMoviePlayerController转发到指定时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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