Type guard: returns true if the parsed playlist is a Media Playlist.
true
const pl = parser(m3u8);if (isMediaPlaylist(pl)) { pl.segments; // ← narrowed to MediaPlaylist} Copy
const pl = parser(m3u8);if (isMediaPlaylist(pl)) { pl.segments; // ← narrowed to MediaPlaylist}
Type guard: returns
trueif the parsed playlist is a Media Playlist.