I'm programming 360 Tours with an custom overlay.
What I do is I call JS functions to load the scenes by JavaScript and that works great.
Now with this new WebVR function I want to enter the WebVR mode (and exit) via an DIV button.
But I have a problem with loading the WebVR and get 'webvr is not defined' when I want to call the 'webvr' instance.
I know that I can only call this instance when it's loaded and ready, but what I try I won't be able to
get it working. I tried it in the Document Ready or in de plugin attributes 'onavailable'. Nothing is working.
My question. Can I build a 'startWebVR()' function and call this by click on the DIV?