Вопрос

I can play the .m3u8 with the native MediaPlayer in android. But, I don't want to be rejected by Gingerbread users. I find a player named Vitamio said to be a wonderful player that can play HLS streaming on 2.x. However, when I import it into my project, the app is not responding, leaving me the log saying avformat_open_input: I/O error -5. The .m3u8 is encrypted, and can be played with the native MediaPlayer in android on my MOTOROLA XT875.

I searched for the error info, and find thisErrors videos not played -- Vitamio.

So, does vitamio really support the encrypted HLS streaming?

Это было полезно?

Решение

Thank U Palejandro! However, according to Vitamio Docs, the latest SDK v4.2 supports the encrypted HLS. Support AES-128 encrypt for HTTP Live Streaming. So, the answer is yes.

Maybe, the problem has something to do with the different SDK version or other issue. I fixed this problem by just testing it on another cell phone...

Другие советы

Vitamio's website: Vitamio feautes not support says:

Doesn't support encrypted videos (such as DRM), embeded m3u8 (if in m3u8 including video links cann't be played, then vitamio will stop playing video, not skip).

so, the answer to your question is unfortunately no. If you want to play encrypted HLS in android devices, you can create something like local server in your phone, which will download and decrypt encrypted .ts files and then create your own m3u8 playlist for mediaplayer

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top