Search Docs
Loading...
Skip to content

Type Alias: EngineCapabilityState

type EngineCapabilityState = "unchecked" | "pending" | "supported" | "unsupported";

Where a capability stands, in this order:

  • unchecked: no answer yet. Browser measurements start with checkCapabilities() or a video check action. Native AAC and MP3 decoding can remain unchecked until an existing media operation initializes a licensed backend and a later checkCapabilities() call refreshes its evidence.
  • pending: it is being measured, and the answer arrives on its own.
  • supported or unsupported: the answer. A codec that stays silent through its own test counts as unsupported. A measurement the browser cuts off, as a background tab can, is no answer: the capability goes back to unchecked, and anyone still waiting gets a new measurement.