Video Player and Web GL build not working
I am reading a lot of problems with the new Video Player. Works well in the editor but has a lot of problems with building. The reason I started this post was I saw nothing specific to the Video Player and Web build problems.
I have tried video clips, URLs, preparing the video (has it's own problems), and even .mov. ogv, and some other formats. Nothing seems to work when I build out. My MOV is about 80mb. I am going to try a much smaller video next just to try and trouble shoot the problems.
So my question. Has anyone been able to get the video player to work on a web build?
Answer by SpencerS · Jun 01, 2017 at 12:30 AM
I did finally find a solution. After much digging I learned my particular problem could be solved by having a .htaccess file placed anywhere within my hosted directory. I am no expert on hosting but when I dropped that file into my directory the video was able to play.
I hosted my own .mp4 file in a video directory on my site. The .htaccess was located in the root directory along with the index.html unity spits out.
Hello Spencer, do you think it has (had) something to do with the size? I have run into problems with loading stuff in the browser but found a work around. All looks good in firefox now.
@Spencer,I am trying play a video using URL but nothing working when i build WebGL. i am trying to open .html file into Firefox,chrome,safari it's showing blank screen. In unity Editor it's working fine .can you help me regarding this please..???
For your reference i am attaching snapshoot Please help me regarding the same
Thank you. ESWAR
@Spencer Hello, pure speculation but could this be something not to do with unity but how your HT$$anonymous$$L document is set up? Going through process of eli$$anonymous$$ation you mentioned that it worked in Unity but not from your browser? Co$$anonymous$$g from a web / flash back ground I remember having nightmares with the files paths and the player once you try to put it online.
Just a question, when you say you are viewing this in your browser have you uploaded this to the world wide web or is this from your desktop?
Thanks,