tedconf / node-m3u8

Streaming parser for m3u8 files in node
MIT License
189 stars 77 forks source link

Feat: add support for parsing #EXT-X-MAP and #EXT-X-KEY #34

Closed Nfrederiksen closed 2 years ago

Nfrederiksen commented 2 years ago

This PR adds support for parsing hls manifests that include a #EXT-X-KEY tag, and also #EXT-X-MAP tag. The implementation followed the structure currently in place for the #EXT-X-CUE-OUT-CONT tag. Following the HLS specs, if the #EXT-X-KEY tag has NONE as METHOD attribute then other attributes will be ignored. if present.

Updated unit tests are also included in this PR.

Bonus