API Docs
    Preparing search index...

    Function isMasterPlaylist

    • Type guard: returns true if the parsed playlist is a Master Playlist.

      Parameters

      Returns pl is MasterPlaylist

      const pl = parser(m3u8);
      if (isMasterPlaylist(pl)) {
      pl.variants; // ← narrowed to MasterPlaylist
      }