I have written a simple parser for parsing Media Playlist file (m3u8) (HLS stream)
"EXT-X-PLAYLIST-TYPE" tag is used to determine the type of content i.e. whether the content is VOD (can't change) or EVENT (can change).
My problem is that "EXT-X-PLAYLIST-TYPE" is an optional tag. If EXT-X-PLAYLIST-TYPE tag is not present in the Media Playlist file, is there a way I can determine the content type?
Currently I check for "EXT-X-ENDLIST" which indicates that no more Media Segments will be added to the Media Playlist file. Is this approach check correct?
Okay, I think it should be fine, According to the player playlist specification:
https://datatracker.ietf.org/doc/html/draft-pantos-http-live-streaming-14#page-29