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

VR button doesn't exists. #59

Closed SabaTD closed 7 years ago

SabaTD commented 7 years ago

Hello, first thanks for great plugin.

I installed it today, works well in normal condition, perfect on full screen too but i haven't VR on/off button in my control panel. I checked VREnable is true everywhere, changing it to false didn't helped too. Any ideas ?

Edit : Tryed code bellow, still not working, couse i haven't button in control panel to get clicked onplay.event.

player.on("play", function(){ var vrbtn = player.controlBar.getChild("VRButton"); vrbtn.handleClick(); });

SabaTD commented 7 years ago

Solved problem, nvm. Thanks again for code :)

jalowin commented 6 years ago

How do you solved the problem? I need add a button or function that start the video in VR mode but if I try use your code the javascript return me "undefinied"

Thanks for all

Best regards