Mouse Pointerlock Controls

Controlling the VR Video using Pointerlock API controls.

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

    <div class="flex w-full h-auto my-auto">
          <div id="pointerlock" class=""></div>
  </div>
  <script type="text/javascript">
  	var player = jwplayer("pointerlock").setup({
    "aspectratio": "16:9",
    "playbackRateControls": true,
    "plugins": {
        "../../js/vrvideo-8.20.0.js": {
            "pointerlock": true
        }
    },
    "sources": [
        {
            "file": "//videos.electroteque.org/360/ultra_light_flight_720p.webm",
            "type": "video/webm"
        },
        {
            "file": "//videos.electroteque.org/360/ultra_light_flight_720p.mp4",
            "type": "video/mp4"
        },
        {
            "file": "//videos.electroteque.org/360/ultra_light_flight_720p.ogv",
            "type": "video/ogg"
        }
    ],
    "width": "100%"
});
  </script>