supervision-js
    Preparing search index...

    Function toMediaSourceError

    • Classifies an arbitrary media failure into a MediaSourceError.

      Already-classified errors pass through so a kind chosen at the point of failure is never downgraded by a broader message match. Anything the heuristics cannot place stays representable as Unknown rather than being forced into a wrong kind.

      Parameters

      • error: unknown
      • OptionalfallbackMessage: string

      Returns MediaSourceError