Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Yesterday17
Copy link

This PR will...

Allow hls.js to decrypt Elementary Audio Stream of Sample-AES.

Why is this Pull Request needed?

Aside of traditional MPEG-TS based container, Sample-AES allows carry raw encrypted audio data.

Reference:

Are there any points in the code the reviewer needs to double check?

Resolves issues:

Checklist

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • API or design changes are documented in API.md

Copy link
Collaborator

@robwalch robwalch left a comment

Choose a reason for hiding this comment

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

Can you include an example of clear-key encrypted content that requires / demonstrates this change?

@@ -91,6 +98,29 @@ class AACDemuxer extends BaseAudioDemuxer {
return frame;
}
}

async demuxSampleAes(
Copy link
Collaborator

@robwalch robwalch Aug 24, 2025

Choose a reason for hiding this comment

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

Do not use the async keyword - Babel adds the regenerator lib to the ES5 output to support it, which increases the bundle size significantly.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Opened #7480 so that this is caught by the linter:

Copy link
Author

Choose a reason for hiding this comment

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

Thank you for the tips! I've removed it in 370b905

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.

2 participants