Mouse Pointerlock Controls

Controlling the VR Video using Pointerlock API controls.

play-rounded-fill play-rounded-outline play-sharp-fill play-sharp-outline
pause-sharp-outline pause-sharp-fill pause-rounded-outline pause-rounded-fill
00:00

This example demonstrates enabling mouse pointerlock VR controls for supported browsers using the Pointerlock API.

    
   <div class="flex w-full">
          <div id="pointerlock" class=""></div>
  </div>
  <script type="text/javascript">
  	var player = flowplayer("#pointerlock", {
    "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": {
        "pointerlock": true
    }
});
  </script>