iBicha / UnityYoutubePlayer

Play YouTube videos in Unity
The Unlicense
336 stars 63 forks source link

[WebGL] CORS Missing allow origin #40

Closed markdimi closed 3 years ago

markdimi commented 3 years ago

Hello. I am having the following error while trying to show a video on WebGL. Any idea how to bypass this? Could you maybe add a header to the request in order for the server to properly fetch the video?

iBicha commented 3 years ago

WebGL support is tricky https://github.com/iBicha/UnityYoutubePlayer/issues/16#issuecomment-743368108 youtube-dl-server already has cors The actual server rejecting your origin is youtube's.

markdimi commented 3 years ago

The player works great in the standalone version (Windows). It's a pitty it doesn't in WebGL.

iBicha commented 3 years ago

Added note to readme that WebGL is not supported. Closing

FireBlast2020 commented 7 months ago

Why does it work perfectly on linux windows and mac but on android it doesnt work