Amazon Vinyl
    Preparing search index...

    Function discoverDashTextTracks

    • Discovers sidecar text tracks from a DASH manifest.

      Considers an <AdaptationSet> to carry text when one of:

      • contentType="text"
      • its mimeType, or that of one of its <Representation>s, starts with text/ (e.g. text/vtt)

      Within a text adaptation set, each <Representation> becomes one TextTrackInfo. The BaseURL chain (MPD → Period → AdaptationSet → Representation) is resolved against the supplied baseUrl.

      Only sidecar (single-file) WebVTT renditions are surfaced. Segmented text tracks (stpp/wvtt codecs) are ignored - they would require streaming through MSE which the sidecar pipeline does not support.

      Parameters

      • manifest: DashManifest

        The parsed DASH manifest.

      • baseUrl: string

        The URL of the manifest, used as the root for BaseURL resolution.

      Returns readonly TextTrackInfo[]