VideoEncoder
The VideoEncoder
interface of the WebCodecs API encodes VideoFrame objects into EncodedVideoChunks. Available only in secure contexts.
Properties
The encodeQueueSize
read-only property of the VideoEncoder interface returns the number of pending encode requests in the queue.
The state
read-only property of the VideoEncoder interface returns the current state of the underlying codec.
Functions
The configure()
method of the VideoEncoder interface changes the VideoEncoder.state of the encoder to 'configured' and asynchronously prepares the encoder to accept VideoEncoders for encoding with the specified parameters.
The encode()
method of the VideoEncoder interface asynchronously encodes a VideoFrame.
The flush()
method of the VideoEncoder interface forces all pending encodes to complete.
The flush()
method of the VideoEncoder interface forces all pending encodes to complete.