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

How to implement ClearKey on Hls.js

Open TREER00T opened this issue 1 year ago • 7 comments

What do you want to do with Hls.js?

Hello, I want to implement ClearKey in hls.js, but I don't know how to implement it, I have implemented ClearKey in this way in shaka packager:

player.configure({
     drm: {
         clearKeys: {
            'abba271e8bcf552bbd2e86a434a9a5d9': '69eaa802a6763af979e8d1940fb88392'
         }
     }
});

Can anyone advise?

What have you tried so far?

No response

TREER00T avatar Sep 13 '23 10:09 TREER00T

See https://github.com/video-dev/hls.js/blob/master/docs/API.md#drmsystems

robwalch avatar Sep 13 '23 16:09 robwalch

Also note that HLS.js ClearKey support is incomplete. There is no way to specify key value pairs for the eme controller.

If you are interested in helping to complete this work, please provide (most important) test HLS assets, and see where it left off in: https://github.com/video-dev/hls.js/pull/2934

robwalch avatar Sep 13 '23 16:09 robwalch

thank you for share information

TREER00T avatar Sep 13 '23 16:09 TREER00T

Hi, @robwalch I want to complete ClearKey. Do you think I should work on the same feature/v1.0.0 branch after 3 years or create another branch from main?

TREER00T avatar Oct 05 '23 19:10 TREER00T

Hi @TREER00T,

Maybe @botengyao would be willing to rebase #2934 or resubmit their changes. Otherwise, please branch from latest (master).

robwalch avatar Oct 05 '23 19:10 robwalch

Thanks @robwalch for the heads-up.

Hi @TREER00T, feel free to take over my work and branch from the latest.

botengyao avatar Oct 05 '23 20:10 botengyao

Great, so I'll grab the latest version from the master branch and go with it

TREER00T avatar Oct 05 '23 21:10 TREER00T

Closing as a duplicate of #2934:

  • #2934

robwalch avatar May 13 '24 18:05 robwalch