How to forward MPMoviePlayerController to specified time in iPhone application?

瘦欲@ 提交于 2019-12-08 21:08:41

问题


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..


回答1:


@property(nonatomic) NSTimeInterval 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



来源:https://stackoverflow.com/questions/3482967/how-to-forward-mpmovieplayercontroller-to-specified-time-in-iphone-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!