Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. VideoEncoder

VideoEncoder

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.

Note: This feature is available inDedicated Web Workers.

TheVideoEncoder interface of theWebCodecs API encodesVideoFrame objects intoEncodedVideoChunks.

EventTarget VideoEncoder

Constructor

VideoEncoder()

Creates a newVideoEncoder object.

Instance properties

Inherits properties from its parent,EventTarget.

VideoEncoder.encodeQueueSizeRead only

An integer representing the number of encode queue requests.

VideoEncoder.stateRead only

Represents the state of the underlying codec and whether it is configured for encoding.

Events

dequeue

Fires to signal a decrease inVideoEncoder.encodeQueueSize.

Static methods

VideoEncoder.isConfigSupported()

Returns a promise indicating whether the providedVideoEncoderConfig is supported.

Instance methods

Inherits methods from its parent,EventTarget.

VideoEncoder.configure()

Asynchronously prepares the encoder to accept video frames for encoding with the specified parameters.

VideoEncoder.encode()

Asynchronously encodes aVideoFrame.

VideoEncoder.flush()

Returns a promise that resolves once all pending encodes have been completed.

VideoEncoder.reset()

Cancels all pending encodes and callbacks.

VideoEncoder.close()

Ends all pending work and releases system resources.

Specifications

Specification
WebCodecs
# videoencoder-interface

Browser compatibility

See also

Video processing with WebCodecs

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp