Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EME Clear Key Demo #122

Open
Kiranmyway opened this issue Jul 30, 2018 · 2 comments
Open

EME Clear Key Demo #122

Kiranmyway opened this issue Jul 30, 2018 · 2 comments

Comments

@Kiranmyway
Copy link

Hi Sam,

Thanks for nice article! https://www.html5rocks.com/en/tutorials/eme/basics/

I am able to follow the instructions and able to encrypt the video using webm_crypt with some key and later I am using same key for decryption & video playback, the encrypted is getting fired, but decryption is not happening successfully.

my question is once we generate the key - how we are converting that to following uint8Array format?

if I convert the encryption key to base64 format & use it, it still does not work. Please help with your inputs/suggestions.

// Define a key: hardcoded in this example
// This corresponds to the key used for encryption
//var KEY = new Uint8Array([
// 0xeb, 0xdd, 0x62, 0xf1, 0x68, 0x14, 0xd2, 0x7b,
// 0x68, 0xef, 0x12, 0x2a, 0xfc, 0xe4, 0xae, 0x3c
//]);

Thanks,
Kiran

@samdutton
Copy link
Owner

Thanks Kiran.

I'm not working so much on EME stuff now, so just checking for the best answer to your question.

Will keep you posted...

@andrebarrett
Copy link

@Kiranmyway Did you manage to get this working? I'm looking at the same thing and wondering where I'm going wrong trying to playback an MP4 file encrypted with CENC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants