Flat 2D Video VR with subtitles

2D Cinema screen in WebXR with subtitle display

PlayerCode: player.on("xrsessionstart", function(session) { console.log("XR Session Start: ", session); }).on("xrsessionstop", function(e) { console.log("XR Session Stop"); }).on("xrsupported", function(e) { console.log("XR Device Supported"); }).on("xrnotsupported", function(e) { console.log("XR Not Available"); }).on("xrdevicechange", function(e) { console.log("XR Device Changed"); }).on("xrvisibilitychange", function(state) { console.log("XR Device Visible State: ", state); }).on("orientationrequest", function(permission) { console.log("Orientation Permission Request: ", permission); });

This example demonstrates Flat 2d video rendering in VR Cinema mode.

When subtitles are configured these will be displayed also on the VR Cinema screen.

For browsers that support WebXR and a headset is available a headset icon will appear to launch into presentation mode. If the WebXR polyfill is configured, non webvr browsers on mobile will display a headset icon.

When rotating away from the visible video screen area in VR. A text notification will appear to click to reposition the pose.

Anti-alias is required to be configured for Cinema mode or else jagged edges display. This may produce a peformance hit.

    <div class="flex w-full h-auto my-auto">
          <div id="flat" class=""></div>
  </div>
  <script type="text/javascript">
  	var player = jwplayer("flat").setup({
    "aspectratio": "16:9",
    "playbackRateControls": true,
    "plugins": {
        "../../js/vrvideo-8.20.0.js": {
            "antialias": true,
            "projection": "2D"
        }
    },
    "sources": [
        {
            "file": "//videos.electroteque.org/bitrate/sintel_2000k.webm",
            "type": "video/webm"
        },
        {
            "file": "//videos.electroteque.org/bitrate/sintel_2000k.mp4",
            "type": "video/mp4"
        }
    ],
    "tracks": [
        {
            "default": 1,
            "file": "//videos.electroteque.org/subtitles/sintel/sintel_en.vtt",
            "kind": "subtitles",
            "label": "English",
            "srclang": "en"
        },
        {
            "file": "//videos.electroteque.org/subtitles/sintel/sintel_de.vtt",
            "kind": "subtitles",
            "label": "Deutsch",
            "srclang": "de"
        },
        {
            "file": "//videos.electroteque.org/subtitles/sintel/sintel_fr.vtt",
            "kind": "subtitles",
            "label": "French",
            "srclang": "fr"
        },
        {
            "file": "//videos.electroteque.org/subtitles/sintel/sintel_it.vtt",
            "kind": "subtitles",
            "label": "Italian",
            "srclang": "it"
        }
    ],
    "width": "100%"
});
  </script>