Skip to content

Add after_key to Map#83

Open
Yesterday17 wants to merge 3 commits intorutgersc:masterfrom
Yesterday17:master
Open

Add after_key to Map#83
Yesterday17 wants to merge 3 commits intorutgersc:masterfrom
Yesterday17:master

Conversation

@Yesterday17
Copy link

According to RFC 8216, section 4.3.2.4:

Media Segments MAY be encrypted. The EXT-X-KEY tag specifies how to
decrypt them. It applies to every Media Segment and to every Media
Initialization Section declared by an EXT-X-MAP tag that appears
between it and the next EXT-X-KEY tag in the Playlist file with the
same KEYFORMAT attribute (or the end of the Playlist file).

Therefore, an initial section declared by EXT-X-MAP can be unencrypted if it appears before the first EXT-X-KEY tag. However, m3u8-rs currently does not store this location information.

This pull request introduces a flag called after_key to save this information.

The naming of this flag might be inappropriate and needs to be revised.

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.

1 participant