hls.js icon indicating copy to clipboard operation
hls.js copied to clipboard

DRM with hls.js?

Open rafa8626 opened this issue 9 years ago • 6 comments

Does currently hls.js support DRM? If so, can you point an example of how to implement this? I know M(PEG)-DASH does that using dash.js but I'm not sure about HLS. Thanks in advance

rafa8626 avatar May 25 '17 01:05 rafa8626

Hi @rafa8626 , did you implemented DRM on playing HLS?

matheusrufca avatar Aug 25 '17 21:08 matheusrufca

No I didn't I tried to look in the documentation but no luck; @mangui is there a way it any example to achieve this?

rafa8626 avatar Aug 26 '17 14:08 rafa8626

adding EME support to hls.js should not be a huge deal, providing that you use fmp4 and that you have a pssh in your initsegment once that is the case you just need to mimic the logic explained here: https://www.html5rocks.com/en/tutorials/eme/basics and follow the Clear Key example

related to https://github.com/video-dev/hls.js/issues/510

mangui avatar Sep 10 '17 07:09 mangui

Thanks @mangui I'll check these links

rafa8626 avatar Sep 11 '17 12:09 rafa8626

@mangui @rafa8626 @matheusrufca Is there a sample code which plays drm widevine using hls.js

piyush2dev avatar Jan 04 '20 14:01 piyush2dev

@piyush2dev check the demo URL it has an example with it

rafa8626 avatar Jan 14 '20 23:01 rafa8626