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

Enhanced Clear Key Content Protection with on-the-fly encryption #150

Merged
merged 4 commits into from Jan 29, 2024

Conversation

tobbee
Copy link
Contributor

@tobbee tobbee commented Jan 26, 2024

This PR implements support for encrypting streams on the fly using either "cbcs" or "cenc" scheme and fetching the keys over HTTP towards the server. The keys and key IDs are generated from the asset name and related to each other which allows for easy lookup and generation.

Both normal and low-latency streaming should be supported. The video and audio segments are encrypted in an extra process round. The init segments also need to be prepared. That is done when ingesting the content. At the same time, it is checked whether the segments are already encrypted, in which case the extra encryption information is not stored.

Pre-encrypted content should also work. Has been tested with an HbbTV asset provided in #122 (after changing the spelling of Laurl and the namespace).

The URL generator has been updated with the new option for eccp.

This solves #122.

@tobbee tobbee merged commit 166ec0d into main Jan 29, 2024
4 checks passed
@tobbee tobbee deleted the feat/eccp branch January 29, 2024 17:28
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

Successfully merging this pull request may close these issues.

None yet

2 participants