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

Add cenc KID attribute to the Descriptor class (#47) #52

Closed

Conversation

CASchneider
Copy link

Added the cenc KID attribute to the Descriptor class to identify cenc KID in the manifests of DRM encrypted content.

Added the cenc KID attribute to the Descriptor class to identify cenc KID in the manifests of DRM encrypted content.
@CASchneider CASchneider force-pushed the feat/detect_cenc_attrs branch from 25c20c3 to 22f086a Compare July 22, 2021 19:18
@rlaphoenix
Copy link
Collaborator

rlaphoenix commented Jul 22, 2021

ns2 is an alternative to cenc. What if we do an or situation here instead of creating a cenc specific kid attribute? There's more than just ns2 and cenc as well, but I'm sort of blanking on remembering any more of them.

However, doing an or situation here could cause a breaking change for any users that solely expect it to be for ns2.

@rlaphoenix rlaphoenix linked an issue Jul 22, 2021 that may be closed by this pull request
@davemevans
Copy link
Collaborator

The namespace can be anything, so no solution like this will cover all cases.

I do prefer having cenc to the random ns2 that's currently supported since I imagine most people will probably use namespace cenc, but the only way to really solve it is to make the parser namespace-aware which is probably unlikely.

It's totally possible for users to added support for elements from different namespaces by redefining classes. Sucks a bit, but keeps the core library cleaner.

sangwonl
sangwonl previously approved these changes Dec 5, 2021
Copy link
Owner

@sangwonl sangwonl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks

@sangwonl sangwonl self-requested a review December 5, 2021 07:56
@sangwonl sangwonl dismissed their stale review December 5, 2021 07:57

LGTM, but I need to follow up the comments.

@sangwonl
Copy link
Owner

sangwonl commented Dec 5, 2021

As far as I survey KIDs such like ns2:default_KID and cenc:default_KID belong to ContentProtection tag, right? If so, we'd better insert them to the specific tag rather than extending Descriptor broad.

But, if not, it would be appreciated if you share an MPD example for it.

@sangwonl
Copy link
Owner

sangwonl commented Dec 7, 2021

Thanks @CASchneider for your contribution. But I believe that ContentProtection from #54 addresses this cenc attribute in general way. So I will close this PR for now. Thanks.

@sangwonl sangwonl closed this Dec 7, 2021
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.

ContentProtection's key_id can be more than ns2:default_KID
4 participants