shaka-project / shaka-player

JavaScript player library / DASH & HLS client / MSE-EME player
Apache License 2.0
7.14k stars 1.34k forks source link

Custom DRM/CDM and decoding method #6081

Closed AlvaroCeCe closed 9 months ago

AlvaroCeCe commented 9 months ago

Have you read the Tutorials? Yes

Have you read the FAQ and checked for duplicate open issues? Yes

What version of Shaka Player are you using? 3.0.10

Please ask your question

Hi all! I would like to use my own cipher for a video played in Shaka player. As far as I know, it's not possible to directly change/tweak Shaka's encrypter and I have to bypass the CDM (content decryption module) to use my custom implementation of a decoding mechanism.

Basically, I'm trying to implement a custom DRM where I manage a key, use it to decode a video and watch it on Shaka player. If I don't have that key, I won't be able to watch that video.

It's my first time working with DRMs and Shaka player so I'm quite lost on this topic. Right now, I'm trying to do now is to work with Shaka Network request/reply and catch the video there, cipher/decypher and then pass it to Shaka player. It's the only way I thought to bypass CDM and implement my cipher.

Thanks in advance.

avelad commented 9 months ago

What you would have to do is the following:

Note:

shaka-bot commented 9 months ago

Closing due to inactivity. If this is still an issue for you or if you have further questions, the OP can ask shaka-bot to reopen it by including @shaka-bot reopen in a comment.