Prioritizing AVPlayer Streaming

In an app with multiple AVPlayers (think TikTok UX for example), where:
• one video is currently streaming
• other videos , that users will move to next, have already been loaded into an AVPlayer for prebuffering

Is there an API to give the currently playing Stream higher priority than the pre-buffering ones that are not on screen?

It's nice to have instant play while scrolling but we also don't want to starve the currently playing player of bandwidth.

Replies

I believe AVPlayer will begin pre-buffering content as soon as an AVPlayerItem is added to it. So the best way to control which players are actively buffering is to avoid adding the item to the player until you want it to start buffering.