Search Docs
Loading...
Skip to content

Type Alias: EngineCapabilityState

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

Where a capability stands, in this order:

  • unchecked: nothing has asked for it to be measured, so it stays this way until something calls checkCapabilities() or runs a video check action.
  • 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.