Package-level declarations
Types
The AudioData
interface of the WebCodecs API represents an audio sample.
The AudioDecoder
interface of the WebCodecs API decodes chunks of audio. Available only in secure contexts.
The AudioEncoder
interface of the WebCodecs API encodes AudioData objects. Available only in secure contexts.
The EncodedAudioChunk
interface of the WebCodecs API represents a chunk of encoded audio data.
The EncodedVideoChunk
interface of the WebCodecs API represents a chunk of encoded video data.
The ImageDecoder
interface of the WebCodecs API provides a way to unpack and decode encoded image data. Available only in secure contexts.
The ImageTrack
interface of the WebCodecs API represents an individual image track.
The ImageTrackList
interface of the WebCodecs API represents a list of image tracks.
The VideoColorSpace
interface of the WebCodecs API represents the color space of a video.
The VideoDecoder
interface of the WebCodecs API decodes chunks of video. Available only in secure contexts.
The VideoEncoder
interface of the WebCodecs API encodes VideoFrame objects into EncodedVideoChunks. Available only in secure contexts.
The VideoFrame
interface of the Web Codecs API represents a frame of a video.
Properties
Functions
The copyTo()
method of the VideoFrame interface copies the contents of the VideoFrame
to an ArrayBuffer
.
The decode()
method of the ImageDecoder interface enqueues a control message to decode the frame of an image.
The flush()
method of the AudioDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
The flush()
method of the AudioEncoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
The flush()
method of the VideoDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
The flush()
method of the VideoEncoder interface forces all pending encodes to complete.
The isConfigSupported()
static method of the AudioDecoder interface checks if the given config is supported (that is, if AudioDecoder objects can be successfully configured with the given config).
The isConfigSupported()
static method of the AudioEncoder interface checks if the given config is supported (that is, if AudioEncoder objects can be successfully configured with the given config).
The isConfigSupported()
static method of the VideoDecoder interface checks if the given config is supported (that is, if VideoDecoder objects can be successfully configured with the given config).
The isConfigSupported()
static method of the VideoEncoder interface checks if VideoEncoder can be successfully configured with the given config.
The ImageDecoder.isTypeSupported()
static method checks if a given MIME type can be decoded by the user agent.