I have an issue with playing a m3u8 file that works on HLS extension and their live demo here
and the extension you can install on chrome or firefox, but with this simple code i can play most files just fine, but that one i can't play it, my i want to know, why it's working on the extension and live demo but when i run it on my code?
var video = document.getElementById('video'); var videoSrc = 'https://devstreaming- cdn.apple.com/videos/streaming/examples/img_bipbop_adv_example_fmp4/master.m3u8'; // // First check for native browser HLS support // if (Hls.isSupported()) { var hlsConfig = { debug: true, xhrSetup: function (xhr, url) { // Set CORS headers on the XHR object }, }; var hls = new Hls(hlsConfig); hls.loadSource(videoSrc); hls.attachMedia(video); hls.on(Hls.Events.MEDIA_ATTACHED, function () { video.muted = true; video.play(); }); }`
the error attached in the picture, i know it seems like CORS issue, but on the extension and the live demo above the file works, please help, i been stuck at this issue.
tried sending with or without credentials, when i debugged the live demo, they don't send credentials, i installed multiple hls versions and still no luck
