- Home /
VideoPlayer when building for webGL
Hi i would like to render a video on a material for my scene. Very easy you will say and i'll answer that you are right. But my problem is when i want to build in WebGl the build works fine but i got an RunTime error during the launch of the page with incomprehensible error ( see below )
My research have bring me at this previous question on the forum : https://forum.unity.com/threads/videoplayer-webgl-url-not-working.467391/. But nothing from this post solve the problem and actually nobody really answer to the problem. I tried 3 solution until now :
the default way where in the editor i drag the video in the component
I tried to create a web server for hosting my video and create a litle C# script where i set the url in the VideoPlayer component.
I tried to replace the url with the streamingAssetsPath way by creating an StreamingAssets repository and by using System.IO.Path.Combine(Application.streamingAssetsPath,"myFile.mp4")
Nothings seems to work and i really can't find anything on the net so if anybody got a solution or a tips for this problem it couldbe very helpfull for me ^^
Your answer
Follow this Question
Related Questions
360 Video Player not working on WebGL build 1 Answer
Servers stress / workload with WebGL medias requested by VideoPlayer 0 Answers
Videoplayer Component in WebGL with OAuth2 url. 0 Answers
Unity Video not playing in WebGL 0 Answers
WebGL - Video 6 Answers