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"
      • mimeType starts with text/ (e.g. text/vtt)
      • mimeType is application/mp4 and the codec/role indicates text

      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[]