My game doesn't play video's in WebGL on play_unity_com

Hi,
I made my first game in unity https://play.unity.com/mg/fps/the-shexinator
When I uploaded it to play.unity.com and I test played I noticed that the video’s are not playing.
On my own server I am able to get the videos playing by using the following code

videoPlayer.url = System.IO.Path.Combine(Application.streamingAssetsPath, video);

Anyone knows how I can make this work on play.unity.com?

Thanks!

*Quote from Videoplayer WebGL (URL) Not working | Possible solution *

General information about CORS: Cross-origin resource sharing - Wikipedia

A more recent post on WebGL videos not playing when loaded via URL:

Edit: Your issue may be related to CORS, so make sure you check it. You might also try this (though including your videos directly in your build increases build size).

1 Like

THanks for the quick reply. I am going to have a look at it.

I did some more research and I notice that the videos are not found…