I'm using hls.js
plus html5 < video >
tag in my browser in order to view live video streams.
However, if I try to give hls.js a link to a video that is on a different site, I get a CORS error.
I was told that I could use an HLS proxy on my server to help prevent CORS errors. But I'm wondering how to do that.
Let's say as an example only, I wanted to play a youtube live stream from my website in the browser using hsl.js
(this is just an example). I give hls.js the URL to YouTube stream since the browser is currently on my website, hls.js
in the browser will go directly to the YouTube website bypassing my server all together causing the CORS error, so how will using an HLS proxy help?
Does anybody know how to solve this CORS problem? Is my whole set up wrong? How to do it? Thanks