简体   繁体   中英

Is Android able to stream .m3u8 file?

I'm trying to stream .m3u8 file using media player for Android. But it seems the media player failed to fetch the playlist:

Error log:

08-28 13:40:48.358: ERROR/LiveSession(8804): unable to fetch master playlist 'http://192.168.0.3:49152/live-streaming/192.168.0.5/6344.m3u8'.

The most frustrated things so far is I did this once and it worked fine, Once I tried for second time, blank screen just appeared.

http://vov.io/vitamio/ This library supports m3u8. see if it works a little better.

I would suggest ExoMedia , a striped down easier-to-use version of Google's own ExoPlayer. Streams m3u8 well, easy as:

emVideoView.setVideoURI(Uri.parse("https://somewebsite.com/somepath/somelink.m3u8"));

Maybe a long shot, but have you tried httplive://192.168.0.3:49152/live-streaming/192.168.0.5/6344.m3u8 ?

Using that in html5 video elements works in Android 2.3.5 for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM