Why does MPMoviePlayerController setCurrentPlaybackTime goes to the wrong time?

前端 未结 4 1719
借酒劲吻你
借酒劲吻你 2020-12-07 01:00

I am experience some weirdness with MPMoviePlayerController.

I am trying to set the currentPlaybackTime of a video whilst it is playing (file source). Here is an exa

4条回答
  •  长情又很酷
    2020-12-07 01:27

    I want to share my experience for MPMoviePlayerController mediaPlayer to play MP3.

    [mediaPlayer setCurrentPlaybackTime:currentPlayBackTime]; // it is not working for MP3 file. This is work only for video.

    i used for MP3 and it is working for IOS 11 and later.

    [mediaPlayer setInitialPlaybackTime:currentPlayBackTime]; // play MP3 file from last position

提交回复
热议问题