- Home /
How do I play videos in WebGL?
I need to export my Unity project to WebGL Builds where the player is able to display videos when he clicks on certain objects. The problem is that the videoplayer plays fine in editor mode but it doesn't play at all once I build the project to WebGL.
When I looked on the web, it seems that you can't have videoclips as source in your video player if you want to export to the web, it has to be an URL. So I tried to fiddle around with StreamingAssets folder and URL source from videoplayer but the problem is still there.
I think I have to type a very specific path into the URL section of the videoplayer in order for it to work but I have absolutly no idea what. I tried Application.streamingAssetsPath but even that doesn't work.
I'm all out of options and I really need your help please.