AVPlayer - Fast Backward / Forward Stream

后端 未结 4 1486
生来不讨喜
生来不讨喜 2021-01-14 00:08

This is my code in the viewDidLoad :

AVPlayerItem* playerItem = [AVPlayerItem playerItemWithURL:[NSURL URLWithString:@\"http://groove.wavestreamer.com:7321/l         


        
4条回答
  •  遥遥无期
    2021-01-14 00:21

    Use AVPlayer method seekToTime

    AVPlayer *player=..;
     [player seekToTime:time toleranceBefore:kCMTimeZero toleranceAfter:kCMTimeZero];
    

    here is a reference

    Hope it helps

提交回复
热议问题