Is it possible to keep the AVQueuePlayer active while a remote AVPlayerItem is being buffered?
Currently, when item goes into buffering, playback stops and all info set by MPNowPlayingInfoCenter is removed - lock screen, command center, external device etc.
I've been testing the AVPlayer/AVQueuePlayer for some time now, and seems like the only option is to:
- Observe remote AVPlayerItem for playbackBufferEmpty
- When observer triggers, insert new AVPlayerItem with empty mp3 file.
- Keep observing remote item's buffer and once it hits playbackLikelyToKeepUp, swap the items in place and advance to the remote one.
The problem with this method is, that once you advance to the empty item, AVQueuePlayer stops buffering the remote. I've set a strong reference to both items and actionAtItemEnd is set to AVPlayerActionAtItemEndNone. Network is monitored by Charles.
Is there any other methods to achieve this?