Hi all
What I'm trying to do is to have my tour restart a 360° video whenever a VR headset gets put on the head again.Is there a way for me to access the XRsession that the WebVR plugin creates?
In order for me to catch it's visibility state changes.
Or am I totally off here?
I need something similair like this capability, but then in the VR session:
Code
document.addEventListener("visibilitychange", () => { console.log(document.hidden); if (document.hidden) { console.log("Took off headset"); } else { console.log("Put on headset"); }});
Kind regardsArnout