I'm not JavaScript guy but I have project with js and plugin VIDEOJS (Video.js v4.6.4 Copyright 2014 Brightcove, Inc. https://github.com/videojs/video.js/blob/master/).
I recived an error:
video.dev.js:1384 VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) The video could not be loaded, either because the server or network failed or because the format is not supported.
I know that solved of this problem can be put: <source src="video/test.m3u8" type="application/x-mpegURL">. but my question is, how to do this.
Original, but now outdated answer:
For browsers without native HLS support you need the videojs-contrib-hls plugin: http://videojs.github.io/videojs-contrib-hls/
As of Video.js v7, HLS is supported by default and does not require anything additional in the default build. HLS playback is either native (Safari, iOS) or Video.js's Media Source Extensions playback engine https://github.com/videojs/http-streaming, which replaced videojs-contrib-hls.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With