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 flex-col w-full">
          <div id="dash-drm" class=""></div>

  </div>
  <script type="text/javascript">
  	var player = flowplayer("#dash-drm", {
    "castInfo": {
        "artwork": [
            {
                "sizes": "128x128",
                "src": "http://192.168.5.25:8000/plugins//flowplayer/native/chromecast/images/stills/bbb_128x128.png",
                "type": "image/png"
            },
            {
                "sizes": "512x512",
                "src": "http://192.168.5.25:8000/plugins//flowplayer/native/chromecast/images/stills/bbb_512x512.png",
                "type": "image/png"
            }
        ],
        "images": [
            {
                "url": "http://192.168.5.25:8000/plugins//flowplayer/native/chromecast/images/stills/bbb_still.jpg"
            }
        ],
        "subtitle": "Subtitle",
        "title": "Big Buck Bunny"
    },
    "src": [
        {
            "drm": {
                "com.microsoft.playready": {
                    "license_server": "//playready.ezdrm.com/cency/preauth.aspx?pX=DE2442&uid=demo&pass=demo"
                },
                "com.widevine.alpha": {
                    "license_server": "//widevine-dash.ezdrm.com/proxy?pX=39010C&uid=demo&pass=demo"
                }
            },
            "src": "//videos.electroteque.org/dash/bbb/bbb.mpd",
            "type": "application/dash+xml"
        }
    ],
    "token": "eyJraWQiOiIyeHRpc0Q5NHZzTjIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjIjoie1wiYWNsXCI6NixcImlkXCI6XCIyeHRpc0Q5NHZzTjJcIixcImRvbWFpblwiOltcImVsZWN0cm90ZXF1ZS5vcmdcIl19IiwiaXNzIjoiRmxvd3BsYXllciJ9.WLUkZHpDNoaXWDaFO2V5UfXm7SnDvE1pFAM0e7ppnFovOSyCCZM-b8gQNBSElB5yirTP__x76Qyo8pMWh6lVrw"
});
  </script>