Streaming with youtube

I’m trying to play a youtube stream but when I try a cors error appears:

Access to XMLHttpRequest at ‘XXXXXXX.m3u8’ from origin ‘XXXXX’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

I have forked this project
https://playcanvas.com/project/689018/overview/onfes

And this my project test:
https://playcanvas.com/editor/scene/1501832

PS: I’trying use other streaming platforms too, twitch, etc … Just the url from Onfes project works

It means that YouTube has block the use of that URL on other domains. You can’t use that URL without YouTube changing their policy

1 Like

Thanks!