Chromecast with Dash DRM

Launch casting session with a Dash DRM stream

Casting with Dash DRM streams. License server can be configured on the receiver or sender side.

    <div class="flex w-full h-auto my-auto">
      <video class="video-js vjs-default-skin vjs-fluid " crossorigin="anonymous" controls="" id="dash-drm"></video>
  </div>
  <script type="text/javascript">
  	var player = videojs("dash-drm", {
    "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"
        }
    }
});


      player.eme();
      player.src([
    {
        "keySystems": {
            "com.microsoft.playready": {
                "url": "//playready.ezdrm.com/cency/preauth.aspx?pX=DE2442&uid=demo&pass=demo"
            },
            "com.widevine.alpha": {
                "url": "//widevine-dash.ezdrm.com/proxy?pX=39010C&uid=demo&pass=demo"
            }
        },
        "src": "//videos.electroteque.org/dash/bbb/bbb.mpd",
        "type": "application/dash+xml"
    }
]);
  </script>