Amazon Vinyl
    Preparing search index...

    Function discoverHlsTextTracks

    • Discovers sidecar text tracks from an HLS multivariant playlist.

      Per RFC 8216 §4.3.4.2, subtitle renditions are signaled with EXT-X-MEDIA:TYPE=SUBTITLES and (when usable as sidecar) carry a URI attribute pointing at a media playlist or, in the simplified single-file case, a .vtt file directly.

      Closed captions (TYPE=CLOSED-CAPTIONS) are intentionally excluded - they are delivered in-band with the video stream and are surfaced by the browser automatically, not through a sidecar fetch.

      Parameters

      • mainPlaylist: HlsMainPlaylist

        The parsed HLS main playlist.

      • baseUrl: string

        The URL of the main playlist, used to resolve relative URIs.

      Returns readonly TextTrackInfo[]