videojs / mpd-parser

https://videojs.github.io/mpd-parser/
Other
79 stars 54 forks source link

Parse <SegmentList> and <SegmentBase> #18

Closed OshinKaramian closed 6 years ago

OshinKaramian commented 6 years ago

This adds the ability for us to parse SegmentList and SegmentBase.

There were some minor reshuffling as well (I don't think it's a huge deal to keep it in here, although I can do it as a seperate PR if that's desirable).

As a note the reshuffling includes:

  1. Moving some of the segment duration/timeline parsing out of segmentTemplate.js into its own file since SegmentBase shares that logic with SegmentTemplate.
  2. Putting all <Segment*> tag parsing into its own folder.
  3. Moving resolveUrl.js into the utils folder.
OshinKaramian commented 6 years ago

Ah, good catch, I missed that bit of nuance. I'll handle that in this PR.

Edit: I'm going to leave <RepresentationIndex> alone here, until we have a better idea of how it fits into how things are structured in the m3u8-parser.