video-dev / hls.js

HLS.js is a JavaScript library that plays HLS in browsers with support for MSE.
https://hlsjs.video-dev.org/demo
Other
14.83k stars 2.57k forks source link

Do you support DRM content on Chrome? #1428

Closed matenadasdi closed 6 years ago

matenadasdi commented 6 years ago

I was wondering about hls.js + DRM for multi-browser usage. Since hls.js is transmuxing chunks I guess using DRM won't work in Chrome where mp4 is needed. Is there a solution for this usecase?

mangui commented 6 years ago

duplicate with https://github.com/video-dev/hls.js/issues/510

matenadasdi commented 6 years ago

Could you please confirm my hunch? As far as I understand hls.js correctly if the TS chunk is encrypted with DRM, it won't be able to transmux it to mp4 on the client side. Am I right?

mangui commented 6 years ago

hls.js is also supporting HLS with fmp4 fragments. with which you could potentially use common encryption.

https://bitmovin.com/hls-news-wwdc-2016/

there is some work remaining so that hls.js can expose the key signalled in the manifest and invoke EME API to decrypt the content.

mangui commented 6 years ago

related to https://github.com/video-dev/hls.js/pull/1442