Skip to content

The real-decoder refusal path for an undecodable codec is unexercised #860

Description

@JArmandoAnaya

VideoRefusal has four members and three of them are exercised against a real decoder in frontend/media/browser/. 'undecodable-codec' is not: the only coverage is frontend/ui-core/src/screens/videoImport.test.tsx, which hands the screen a fake runtime already returning that refusal.

The obstacle is that the refusal needs a clip the runner can contain but not decode, and the Playwright Chromium encodes and decodes the same set - VP8, VP9, H.264 and AV1 all both ways, HEVC neither. So there is no codec it can encode into a fixture but then decline to open, and the fixtures are encoded in-browser precisely because this distribution has no media toolchain.

The prose, the union member and the UI branch are all in place; what is missing is a real canDecode() === false from a real decoder.

Direction: either commit a tiny HEVC clip obtained without a host toolchain, or accept a stubbed decoder at this one boundary and say so where the gap is recorded.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontendannotator / ui-core / app packagestoolingDeveloper tooling: scripts, checks, local workflow

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions