Recording · function
framesReachEncoder
Paint a known colour, encode it, decode it back, and report what came out.
Explained in Recording and clips.
function framesReachEncoder(): Promise<FrameDelivery>import { framesReachEncoder } from '@driftengine/media';In depth
Memoised for the session: the fault is a property of how the browser was started, so a second answer cannot differ from the first, and an export path that asks before every attempt should pay for one encode rather than one per press.
Every failure path answers unknown rather than throwing, including the timeout. This runs in
front of an export, and a capability probe that can itself stop one has become a liability
rather than a check.