Commit Graph
3 Commits
  • refactor(watch): one list of the reader failures a person may be shown
    The HLS and the DASH adapters each kept a pattern of the reader codes
    allowed to reach the person, and the two had drifted: DASH dropped a
    failed source and a resource limit, which HLS kept. The MP4 path kept
    no list and passed any reader rejection on, text included.
    watchReaderFailures, beside WatchByteReader, is that list once: what
    room delivery, the App's source reader and the player's bounded reads
    may answer. HLS and DASH test it; the MP4 reader is wrapped so that a
    rejection outside it is watch_media_failed, and cancellation keeps the
    signal's reason.
    
    What changes:
    
    - DASH shows the source-unavailable guidance for watch_source_failed
      and the cannot-forward guidance for watch_resource_limit, as HLS did.
    - HLS and DASH keep the codes Core carries through relays
      (unknown_outcome, unsupported), a lost room or App connection, and
      the App reader's diagnoses that MP4 already showed.
    - DASH tests reader codes only when its reader bridge is installed; a
      direct load keeps its own manifest and capability codes.
    - An MP4 read can no longer put text that is not a listed code into the
      player's state, nor claim the capability failure that selects the
      native fallback.
    
    Left alone: the two manifest codes Native's playlist rewriting can
    answer, which neither mapper admitted before.
    
    Tests: HLS for a reader's code against an HTTP status and for the newly
    shared codes; DASH through the real scheme plugin for a rejected load
    and an error event; MP4 for an unlisted probe failure, a later read
    claiming the capability failure, and a listed later failure.