Automatic WebXR Session

Automatically starting a WebXR Session

This example demonstrates automatically starting an XR headset session when clicking to play.

    
   <div class="flex w-full">
          <div id="autosession" class=""></div>
  </div>
  <script type="text/javascript">
  	var player = flowplayer("#autosession", {
    "clip": {
        "sources": [
            {
                "src": "//videos.electroteque.org/360/ultra_light_flight_720p.webm",
                "type": "video/webm"
            },
            {
                "src": "//videos.electroteque.org/360/ultra_light_flight_720p.mp4",
                "type": "video/mp4"
            },
            {
                "src": "//videos.electroteque.org/360/ultra_light_flight_720p.ogv",
                "type": "video/ogg"
            }
        ]
    },
    "share": false,
    "vrvideo": {
        "autoVRSession": true
    }
});
  </script>