Subtitles in WebXR

Subtitles display in WebXR / Cardboard presentation

This example demonstrates VR Video Controls and Subtitles support.

When in VR presentation mode. A virtual controlbar will control playback when selecting the display.

Subtitle text will display and follow head rotations.

    
  <div class="flex flex-col w-full">
          <div id="subtitles" class=""></div>

  </div>
  <script type="text/javascript">
  	var player = flowplayer("#subtitles", {
    "src": [
        {
            "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"
        }
    ],
    "subtitles": {
        "tracks": [
            {
                "default": 1,
                "kind": "subtitles",
                "label": "English",
                "src": "//videos.electroteque.org/subtitles/sintel/sintel_en.vtt",
                "srclang": "en"
            },
            {
                "kind": "subtitles",
                "label": "Deutsch",
                "src": "//videos.electroteque.org/subtitles/sintel/sintel_de.vtt",
                "srclang": "de"
            },
            {
                "kind": "subtitles",
                "label": "French",
                "src": "//videos.electroteque.org/subtitles/sintel/sintel_fr.vtt",
                "srclang": "fr"
            },
            {
                "kind": "subtitles",
                "label": "Italian",
                "src": "//videos.electroteque.org/subtitles/sintel/sintel_it.vtt",
                "srclang": "it"
            }
        ]
    },
    "token": "eyJraWQiOiIyeHRpc0Q5NHZzTjIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjIjoie1wiYWNsXCI6NixcImlkXCI6XCIyeHRpc0Q5NHZzTjJcIixcImRvbWFpblwiOltcImVsZWN0cm90ZXF1ZS5vcmdcIl19IiwiaXNzIjoiRmxvd3BsYXllciJ9.WLUkZHpDNoaXWDaFO2V5UfXm7SnDvE1pFAM0e7ppnFovOSyCCZM-b8gQNBSElB5yirTP__x76Qyo8pMWh6lVrw",
    "vrvideo": {}
});
  </script>