EME Clear Key Demo

Open
#122 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
web-dev

Research direction

Start with the EME Clear Key demo and the linked HTML5 Rocks EME basics article; compare the generated encryption key with the demo's hardcoded Uint8Array and the webm_crypt output. Reproduce the encryption, decryption, and playback failure, then confirm the key representation that makes playback succeed.

Written by the indexing model from the issue text.

Description

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

Dominant language
HTML
Stars
5.2k
Forks
1.6k
Avg merge
3h 37m
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from samdutton/simpl

All issues in samdutton/simpl

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.