yanwsh / videojs-panorama

a plugin for videojs run a full 360 degree panorama video.
http://yanwsh.github.io/videojs-panorama/
Other
485 stars 160 forks source link

Black Screen in Chrome #42

Closed newtocoding123 closed 7 years ago

newtocoding123 commented 7 years ago

Hi!

Issue is pertaining to when using on my laptop. The video player works perfectly fine on Firefox, however, when on Chrome, it only shows a black screen but there's audio. I'm using video.js 5 (latest). I am using the latest Chrome as well. I'm using my own video in my computer, not off any server else well. I got all the codes off from your demo(http://yanwsh.github.io/videojs-panorama/) by viewing the source and implementing them.

Any suggestions what I can do?

Thank you!

yanwsh commented 7 years ago

Hello, this is because browser don't support cross domain, did you use remote video? You have to download video.

newtocoding123 commented 7 years ago

I did not use remote video. The video file is in my computer. I used the video from my computer, no need for any server/internet etc. Currently, i have the crossorigin "anonymous" line removed so it's a black screen but with audio. However, if i add the crossorigin "anonymous" line, it changes to media file not supported instead.

yanwsh commented 7 years ago

which video did you use? mp4? Could you send whole project files to me? My email address is yanwsh@gmail.com.

yanwsh commented 7 years ago

Did you directly open html file on browser or base on a server?

newtocoding123 commented 7 years ago

Yes I used an .mp4 360 video I downloaded from Youtube. Alright I'll send u my whole project files now. I open directly on browser. I am not making use of any server at all.

yanwsh commented 7 years ago

Solved, close ticket.