AVPlayer - Auto quality change - Multiple URLs

1.6k Views Asked by At

I have multiple URL for different video quality (240p, 360p, 720p, 1080p) and i'm using AVPlayer to stream. What i wanna achieve is

Selecting initial URL to start video depending on internet connection speed (I don't have concern with wifi, 2G or 3G; only concern is that connection speed is able to stream or not) Switching URL/Stream while playing if internet connection speed is updated. Video should not pause while auto switching URL/Stream How can i achieve this?

1

There are 1 best solutions below

2
On BEST ANSWER

It sounds like you're duplicating the effort of HTTP Live Streaming. Can you just adopt that?

https://developer.apple.com/streaming/