1

Trying to allow user to skip backwards in AVQueuePlayer while preserving the original AVQueuePlayer collection. For instance, user hits back button twice and resumes listening from previous position. Referring to this Skip to Previous AVPlayerItem on AVQueuePlayer / Play selected Item from queue - appears to dump all items from queue and play only a specified item. Without having to re-initialize/populate queue every time, is there a way to skip back and have queue resume its flow to completion?

Thank you

Community
  • 1
  • 1
Mickey
  • 313
  • 2
  • 13

1 Answers1

1

No. Apple's documentation explains that when advancing to the next item, AVQueuePlayer removes the current item from the queue. Given there's only -insertItem:afterItem:, there's no way of re-inserting items before the current item without dumping and rebuilding the queue.

followben
  • 9,067
  • 4
  • 40
  • 42
  • It should also be noted that `removeAllItems` is quite bugged. When doing so and inserting two new items it will attempt to play the first one but it will go straight to the second one. Behavior observed through KVO currentItem, iOS 6.0.2. – kain Jan 11 '13 at 14:56