Chromecast with HLS

Launch casting session with a HLS stream

  },
  "sources": [ { "type": "application/x-mpegurl", "src": "https://videos.electroteque.org/hls/bigbuckbunny/playlist.m3u8"} ]
}

Demonstrate casting with HLS streams.

    <div class="flex w-full h-auto my-auto">
      <video class="video-js vjs-default-skin vjs-fluid " crossorigin="anonymous" controls="" id="hls"></video>
  </div>
  <script type="text/javascript">
  	var player = videojs("hls", {
    "castInfo": {
        "artwork": [
            {
                "sizes": "128x128",
                "src": "images/stills/bbb_128x128.png",
                "type": "image/png"
            },
            {
                "sizes": "512x512",
                "src": "images/stills/bbb_512x512.png",
                "type": "image/png"
            }
        ],
        "images": [
            {
                "url": "http://192.168.5.25:8000/plugins//videojs/chromecast/images/stills/bbb_still.jpg"
            }
        ],
        "subtitle": "Subtitle",
        "title": "Big Buck Bunny"
    },
    "plugins": {
        "chromecast": {
            "castAppID": "5C78621A"
        }
    },
    "sources": [
        {
            "src": "https://videos.electroteque.org/hls/bigbuckbunny/playlist.m3u8",
            "type": "application/x-mpegurl"
        }
    ]
});
  </script>