开发者

Is Android able to stream .m3u8 file?

开发者 https://www.devze.com 2023-03-31 21:32 出处:网络
I\'m trying to stream .m3u8 file using media player for Android. But it seems the media player failed to fetch the playlist:

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.


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.


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"));
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号