Choose video quality in hls stream on Android

The HLS protocol is based on the idea of ​​a .m3u8 Playlist file containing a list of several versions of the same content encoded in different video / audio qualities.

The idea is to allow the client player to automatically switch quality based on user rules (bandwidth, client video size, etc.).

Using the MediaPlayer class on the Android platform, I can pass the contents of hls (like this url).

How can I programmatically select which of the available levels to use the application during streaming?

+5
source share

All Articles