如何在iPhone应用程序中将MPMoviePlayerController转发到指定时间?

如何在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