search

Home  >  Q&A  >  body text

ios - MPMoviePlayerController 的 currentPlaybackTime 不起作用?

我想加载的时候定位到某一进度,代码如下: 但是还是从头播放, 什么情况?

 self.pvc.currentPlaybackTime = NSTimeInterval(30)
 self.pvc.play()
大家讲道理大家讲道理2893 days ago265

reply all(1)I'll reply

  • 黄舟

    黄舟2017-04-18 09:19:15

    You can try to listen to MPMoviePlayerReadyForDisplayDidChangeNotification and adjust the progress after receiving the listener.

    reply
    0
  • Cancelreply