I'm trying to implement adaptive bit-rate streaming in my app that automatically switch the quality depending on the connection speed. How could I achieve this. Is there is any third party library available for this. does the default android video view support adaptive bit-rate streaming?
2 Answers
Android supports HLS, please have a look at the Android documentation about Supported Media Formats.
There is also the ExoPlayer Open Source project, which supports MPEG-DASH and I think also HLS, which can be used to build native apps.
If you want to use the webview (or support playback in the browser) you could also use web-based players, like the Bitmovin Adaptive Streaming Player, which also supports MPEG-DASH and HLS.

- 1,208
- 9
- 14
-
1Where in the "Supported Media Formats" link do you see support for HLS? Did they update it or am I missing something. HLS is indeed working but I would like official documentation on it. – Drew S Mar 07 '18 at 23:04
-
1It's listed in the network protocols section. I've updated the link to directly jump to that section. Please note that the use the full name instead of the abbreviation `HLS`, so what you're looking for is `HTTP/HTTPS live streaming draft protocol`. – Daniel Mar 08 '18 at 06:10
-
Thank you, I was indeed looking for the abbreviation. – Drew S Mar 08 '18 at 21:42
Android has a easy way to perform a player with Adaptative HLS Streaming. In this case Exoplayer has a many advantage to perform this.
If you use Android Studio you can begin with this example that use Exoplayer:
1-Download the project and extract.
2-Build the entire project with Android Studio.
3-Test with emulator or Device
Link to Android Project: https://drive.google.com/file/d/1GFXLqb8OdmWG-Kvu2DB4H3rZxv6E2v/view?usp=sharing
4- Touch the button card and play online movie.
I hope can help you!. Good luck

- 11
- 3