Cannot Load m3u8: no EXTm3u delimiter JWPlayer Error

烂漫一生 提交于 2020-01-06 06:11:19

问题


i can't speak english good sorry for this =)
I have a web site for live stream. I use JWPlayer.
Video runs smoothly on a computer (Chrome).
But getting such an error in android devices.
This is error's SS

             <script type="text/javascript">
                   jwplayer('playerjxASSdasni').setup({
                       'id': 'playerID',
                       'width': '100%',
                       'height': '600',
                       'file': 'www.yyy.com:8080/live/asas.m3u8',
                       'androidhls': 'true',
                       'image': '/thumbs/bunny.jpg',
                       'modes': [
                              {type: 'html5',},
                              {type: 'flash', src: 'jwplayer/player.swf'},
                              {type: 'download'}
                                ]});
            </script>             

It works fine on the computer
But why on android chrome also gives an error
I can't fix this. And i find this Ext Response Pic but i dont know what i can for fix this error.
Thanks


回答1:


I had the same error. It was caused by wrong file extension. This was my code:

var playerInstance = jwplayer("test-jwplayer-adaptive");
    playerInstance.setup({
        type: "hls",
        file: "http://example.com/adaptive-1.mp4", //A link to the HLS manifest
        mediaid: "xxxxYYYY" // MediaID generated by our platform in order to take advantage of our analytics
    });

The fix was changing .mp4 to .m3u8 file format.



来源:https://stackoverflow.com/questions/47965292/cannot-load-m3u8-no-extm3u-delimiter-jwplayer-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!