matvp91 / indigo-player

Highly extensible, modern, JavaScript video player. Handles MPEG-Dash / HLS / MPEG-4 and is built on top of the HTML5 video element.
https://matvp91.github.io/indigo-player/
Apache License 2.0
1.25k stars 66 forks source link

How to play mpeg-dash + Clearkey? #54

Open unknn opened 4 years ago

unknn commented 4 years ago

Is it possible to use this player to play mpeg-dash + clearkey?

One of the code examples at https://matvp91.github.io/indigo-player/#/Configuration?id=mpeg-dash-drm-widevine-amp-playready use a playready and widevine licence:

{ sources: [ // Play a Dash manifest { type: 'dash', src: 'https://amssamples.streaming.mediaservices.windows.net/622b189f-ec39-43f2-93a2-201ac4e31ce1/BigBuckBunny.ism/manifest(format=mpd-time-csf)', drm: { widevine: { licenseUrl: 'https://amssamples.keydelivery.mediaservices.windows.net/Widevine/?KID=1ab45440-532c-4399-94dc-5c5ad9584bac', }, playready: { licenseUrl: 'https://amssamples.keydelivery.mediaservices.windows.net/PlayReady/', }, }, }, ], }

I thought that i needed to buy a drm licence to use playready or widevine, the license listed above is for free or just for testing?

matvp91 commented 4 years ago

The configuration above is merely a wrapper around shaka. At the moment, it does not wrap clearkey configuration, but I'd be happy to accept a PR for this.

The sample licenses above are publicly available test assets.