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

Support SAMPLE-AES encryption with identity key format #6488

Open
Romantic-LiXuefeng opened this issue Sep 30, 2019 · 2 comments
Open

Support SAMPLE-AES encryption with identity key format #6488

Romantic-LiXuefeng opened this issue Sep 30, 2019 · 2 comments

Comments

@Romantic-LiXuefeng
Copy link

Romantic-LiXuefeng commented Sep 30, 2019

Just as the title. Support to decrypt H.264/AAC/AC-3/Enhanced AC-3 streams encrypted with AES-SAMPLE encryption described in the below link .
https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/HLS_Sample_Encryption/Encryption/Encryption.html.
If there is no plan to support this, Hope give some advice how to implement this feature.

@Romantic-LiXuefeng Romantic-LiXuefeng changed the title Support decrypt the HLS streams encrypted with sample-based SAMPLE-AES encryption Support to decrypt the HLS streams encrypted with sample-based SAMPLE-AES encryption Sep 30, 2019
@AquilesCanta AquilesCanta self-assigned this Sep 30, 2019
@AquilesCanta
Copy link
Contributor

AquilesCanta commented Sep 30, 2019

It's not in our current plans to add support for this. Still I'll leave this open to track support for non-CDM SAMPLE-AES protection.

If you are looking into implementing this, the simplest approach to start with is probably implementing your own ElementaryStreamReader (for Transport Stream elementary streams, start by forking H264Reader), or Extractor for packed audio. You'll need to plumb the key and initialization vector into your extractor in order to decrypt.

Once a working solution is in place, we can look into making it fit into ExoPlayer's model.

@AquilesCanta AquilesCanta changed the title Support to decrypt the HLS streams encrypted with sample-based SAMPLE-AES encryption Support SAMPLE-AES encryption with identity key format Sep 30, 2019
@google google deleted a comment from google-oss-bot Oct 7, 2019
@Romantic-LiXuefeng
Copy link
Author

@AquilesCanta As your said, issuecomment, whether there is no different to extract Sample from encrypted TS format or clear TS format.

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

No branches or pull requests

2 participants