MPMoviePlayerController play video starting from 3

2019-05-14 06:21发布

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条回答
Summer. ? 凉城
2楼-- · 2019-05-14 06:33
MPMoviePlayerController *mp;

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

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

查看更多
登录 后发表回答