Skip to main content

Module native_video

Module native_video 

Source
Expand description

Whether this process renders video natively — one answer, three consumers (UR-080 / DR-231, DR-235). Whether this process renders video natively, answered once.

Three things need this and must agree: the mpv backend (which has to be configured for video at construction, before anything plays), the video surface (which has nothing to draw otherwise), and get_player_status (which tells the frontend whether to use a webview <video> element).

It is a function rather than three env::var checks for the reason this codebase keeps rediscovering: a capability answered in several places is a capability whose answers drift. Four separate bugs this cycle came from exactly that shape — a webview’s decode limits applied to ExoPlayer, a transcode target contradicting a direct-play claim, a codec list hardcoded in a URL builder. One source, read by everyone.

TRACES: UR-080 | DR-231, DR-235

Constants§

ENV_FLAG 🔒
The opt-in for native desktop video.

Functions§

enabled
Whether mpv should decode and draw video in this process.