MPMoviePlayerController play video starting from 30th sec (from mid of the video)

拈花ヽ惹草 提交于 2019-12-07 12:24:47

问题


I am creating a simple media player using MPMoviePlayerController, here I want to play the videos from particular point like from 30th sec or 50th second onwards and also want to move the video player head to any particular point and start playing it from that point. I tried with initialPlaybackTime and MPMoviePlaybackStateSeekingForward but no luck.

video is not from local, its from server.

Please help me to do the same.


回答1:


MPMoviePlayerController *mp;

mp.initialPlaybackTime = 84;
mp.endPlaybackTime = 118;

It will start movie playback from 84th second till the 118th second.



来源:https://stackoverflow.com/questions/6439958/mpmovieplayercontroller-play-video-starting-from-30th-sec-from-mid-of-the-video

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