videojs / m3u8-parser

An m3u8 parser.
Other
471 stars 98 forks source link

feat: Add PDT to each segment #168

Closed harisha-swaminathan closed 1 year ago

harisha-swaminathan commented 1 year ago

Includes BREAKING CHANGES

The PR

If the first EXT-X-PROGRAM-DATE-TIME tag in a Playlist appears after one or more Media Segment URIs, the client SHOULD extrapolate backward from that tag (using EXTINF durations and/or media timestamps) to associate dates with those segments.

To associate a date with any other Media Segment that does not have an EXT-X-PROGRAM-DATE-TIME tag applied to it directly, the client SHOULD extrapolate forward from the last EXT-X-PROGRAM-DATE-TIME tag appearing before that segment in the Playlist.