cadebward / hls

A simple and fast library for parsing HLS manifests.
Apache License 2.0
3 stars 5 forks source link

Parse and serialize `EXT-X-MAP` tags #9

Open samrat opened 1 month ago

samrat commented 1 month ago

Thank you for this library!

For HLS streams using fMP4 files the EXT-X-MAP tag is used to specify the path of the mp4 files with the initialization information.

This library doesn't seem to parse or serialize these tags.

I took a stab at implementing this and made some progress but wasn't sure how to handle the following part of the RFC:

It applies to every Media Segment that appears after it in the Playlist until the next EXT-X-MAP tag or until the end of the Playlist.

Are there other tags implemented that I could look at?

cadebward commented 1 month ago

Hey @samrat, you are right that we haven't implemented that. I haven't yet seen, in practice at least, more than one EXT-X-MAP tag in a playlist, have you?

If you want to take a stab at it, it might be sufficient to get it working according to until the end of the Playlist and maybe ignore until the next EXT-X-MAP tag. As you can see, we didn't really build this library to account for every single thing in the spec. Mostly just the basics to satisfy our needs.