Subtitles

Youtube Subtitles Demo

    <div class="flex w-full h-auto my-auto">
      <video class="video-js vjs-default-skin vjs-fluid " crossorigin="anonymous" controls="" id="subtitles"></video>
  </div>
  <script type="text/javascript">
  	var player = videojs("subtitles", {
    "plugins": {
        "qualitymenu": {},
        "youtube": {
            "subtitles": true
        }
    },
    "sources": [
        {
            "src": "http://www.youtube.com/watch?v=QRS8MkLhQmM",
            "type": "video/youtube"
        }
    ]
});
  </script>