Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for VideoEncoder: encode() method.
Dictionary 0
This corpus is unavailable: timeout
Papers 0
This corpus is unavailable: timeout
Wikidata 0
This corpus is unavailable: timeout
Developer library 6
VideoEncoder
WebCodecs APIwindow_and_dedicated The **`VideoEncoder`** interface of the encodes VideoFrame objects into EncodedVideoChunks. ## Constructor - VideoEncoder() - : Creates a new `VideoEncoder` object. ## Instance properties _Inherits properties from its parent, EventTarget._ - VideoEncoder.encodeQueueSize - : An integer representing the number of encode queue requests. - VideoEncoder.state - : Represen
VideoEncoder: configure() method
WebCodecs APIwindow_and_dedicated The **`configure()`** method of the VideoEncoder interface changes the state of the encoder to "configured" and asynchronously prepares the encoder to accept VideoEncoders for encoding with the specified parameters. If the encoder doesn't support the specified parameters or can't be initialized for other reasons an error will be reported via the error callback provided to the VideoE
VideoEncoder: isConfigSupported() static method
WebCodecs APIwindow_and_dedicated The **`isConfigSupported()`** static method of the VideoEncoder interface checks if VideoEncoder can be successfully configured with the given config. ## Syntax ```js-nolint VideoEncoder.isConfigSupported(config) ``` ### Parameters - `config` - : The dictionary object accepted by VideoEncoder.configure ### Return value A Promise that resolves with an object containing the fo
VideoEncoder: flush() method
WebCodecs APIwindow_and_dedicated The **`flush()`** method of the VideoEncoder interface forces all pending encodes to complete. ## Syntax ```js-nolint flush() ``` ### Parameters None. ### Return value A Promise that resolves once the encoder's initialization is completed and all pending EncodedVideoChunks are returned. ### Exceptions - `InvalidStateError` DOMException - : Returned if the Promise is reject
VideoEncoder: reset() method
WebCodecs APIwindow_and_dedicated The **`reset()`** method of the VideoEncoder interface synchronously cancels all pending encodes and callbacks, frees all underlying resources and sets the state to "unconfigured". After calling `reset()`, configure() must be called before resuming encode() calls. > [!NOTE] > To avoid discarding frames queued via encode(), flush() should be called and completed before calling `rese
VideoEncoder: encode() method
WebCodecs APIwindow_and_dedicated The **`encode()`** method of the VideoEncoder interface asynchronously encodes a VideoFrame. Encoded data (EncodedVideoChunk) or an error will eventually be returned via the callbacks provided to the VideoEncoder constructor. ## Syntax ```js-nolint encode(frame) encode(frame, options) ``` ### Parameters - `frame` - : A VideoFrame object. - `options` - : An object containing