Android HLS Streaming

HLS is supported on Android from version 3.0. Until Honeycomb did not support H.264 and AAC, but there was only the RTSP protocol. HLS and MPEG-2 TS none (see here ) were not supported.

Porting ffmpeg to the Android platform may be the solution for this (LGPL ara sources are available). However, I am looking for a turnkey solution with an SDK, a custom HLS player, etc. There is but I would like to know if you do not know about other solutions.

Thanks STEN

+4
source share
3 answers

Finally, we made our own player using the FFMPEG libraries, and now we also integrate HW decoding there using stagefright (http://freepine.blogspot.cz/2010/01/overview-of-stagefrighter -player.html).

BR sten

+1
source

You can find the http://vov.io/vitamio/ libraries very useful. They allow you to use HLS channels (I tested and used the library in production applications).

It’s one thing to note, however, do not try to test the Emulator device, since it will not work, you will need a real device for testing.

Hope this helps.

Warm greetings

Shabbir

- EDIT -

Just edit this answer so that people know that the Vitamio URL has changed - and now you don’t need to download a separate “helper application” from the PlayStore or vov.io website - now you can simply include all of the downloads / instructions that they provide.

New site http://vitamio.org/

+5
source

MPEG TS exists in the codebase 2.3 (Gingerbread), but it is not advertised. In fact, HLS is supported in version 2.3, but you need a little fix to enable it. You need the httplive prefix for streams and make a small correction in the code to accept it.

Vibyor

+2
source

Source: https://habr.com/ru/post/1395200/


All Articles