Firefox Tomorrow

web api interface

VideoDecoder

View on MDN ↗

Secure contextAvailable in workers

The VideoDecoder interface of the WebCodecs API decodes chunks of video.

Constructor

Instance properties

Inherits properties from its parent, EventTarget.

  • decodeQueueSize Read only
    • : An integer representing the number of queued decode requests.
  • state Read only
    • : Indicates the current state of decoder. Possible values are:
      • "unconfigured"
      • "configured"
      • "closed"

Events

Static methods

Instance methods

Inherits methods from its parent, EventTarget.

  • configure()
    • : Enqueues a control message to configure the video decoder for decoding chunks.
  • decode()
    • : Enqueues a control message to decode a given chunk of video.
  • flush()
    • : Returns a promise that resolves once all pending messages in the queue have been completed.
  • reset()
    • : Resets all states including configuration, control messages in the control message queue, and all pending callbacks.
  • close()
    • : Ends all pending work and releases system resources.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also