yanwsh / videojs-panorama

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

Any thoughts on how I might modify this to work within a React application? #18

Closed ryandury closed 7 years ago

ryandury commented 7 years ago

Hey there, i'm trying to get this to work inside of a react application. I believe where it's failing is actually with the reference to the three.js library. Any insight would be appreciated!

ryandury commented 7 years ago

Update, the video appears to load (I hear audio..) but the page is completely blank.

yanwsh commented 7 years ago

Hey, could you provide a demo for me to test?

yanwsh commented 7 years ago

I know react load script async. So you have to make sure three.js, videojs and videojs-panorama loaded before you call it out. Did you see any error message on console?

yanwsh commented 7 years ago

Hello @ryandury, this is supported, please check #22 for reference.