0
[queuePlayer seekToTime:CMTimeMake(time,1)];

While I take seekToTime, the audio does replay, not seek to the time. How to create CMTime para or you can tell me how to do all.

tuomastik
  • 4,559
  • 5
  • 36
  • 48
aaron
  • 1

1 Answers1

-1

Please try below code:

UISlider *s = (UISlider*)sender;
[appDelegate.queuePlayer seekToTime:CMTimeMakeWithSeconds(s.value, queuePlayer.currentTime.timescale)];

first para is progress (0-1.0) second para like this 'queuePlayer.currentTime.timescale'

Ashok Londhe
  • 1,491
  • 11
  • 29
aaron
  • 1