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

#EXT-X-KEY is not parsed. #13

Open
tianfeng98 opened this issue Jul 10, 2024 · 1 comment
Open

#EXT-X-KEY is not parsed. #13

tianfeng98 opened this issue Jul 10, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@tianfeng98
Copy link

This is a very good project, lightweight, simple, and commonly used. I think we also need to add some common parsing instructions, such as #EXT-X-KEY.
Some videos are encrypted and need to be decrypted on the client before being played.
The encryption information is described in #EXT-X-KEY, which can be found in the RFC documentation

@Raiper34 Raiper34 added the enhancement New feature or request label Jul 10, 2024
@Raiper34
Copy link
Owner

Raiper34 commented Jul 31, 2024

Hi, I added the ability to configure and parse custom unknown directives.

const customDataMapping: M3uCustomDataMapping = {
            '#EXTCUSTOMPLAYLIST': false,
            '#EXTCUSTOMMEDIA': true,
}
M3uParser.parse(playlistString, {customDataMapping})

See documentation https://m3u-parser-generator.netlify.app/interfaces/m3ucustomdatamapping
Released under 2.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants