VideoEncoder
The VideoEncoder
interface of the WebCodecs API encodes VideoFrame objects into EncodedVideoChunks. Available only in secure contexts.
Properties
Link copied to clipboard
Link copied to clipboard
The encodeQueueSize
read-only property of the VideoEncoder interface returns the number of pending encode requests in the queue.
Link copied to clipboard
Link copied to clipboard
The state
read-only property of the VideoEncoder interface returns the current state of the underlying codec.
Functions
Link copied to clipboard
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.
Link copied to clipboard
Link copied to clipboard
The encode()
method of the VideoEncoder interface asynchronously encodes a VideoFrame.
Link copied to clipboard
Link copied to clipboard