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 AudioEncoder: 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
AudioEncoder
WebCodecs APIwindow_and_dedicated The **`AudioEncoder`** interface of the [WebCodecs API](/docs/Web/API/WebCodecs_API) encodes AudioData objects. ## Constructor - AudioEncoder() - : Creates a new `AudioEncoder` object. ## Instance properties _Inherits properties from its parent, EventTarget._ - AudioEncoder.encodeQueueSize - : An integer representing the number of encode queue requests. - AudioEncoder.st
AudioEncoder: configure() method
WebCodecs APIwindow_and_dedicated The **`configure()`** method of the AudioEncoder interface enqueues a control message to configure the audio encoder for encoding chunks. ## Syntax ```js-nolint configure(config) ``` ### Parameters - `config` - : A dictionary object containing the following members: - `codec` - : A string containing a [valid codec string](https://w3c.github.io/webcodecs/codec_registr
AudioEncoder: isConfigSupported() static method
WebCodecs APIwindow_and_dedicated 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). ## Syntax ```js-nolint AudioEncoder.isConfigSupported(config) ``` ### Parameters - `config` - : The dictionary object accepted by AudioEncoder.configure ### Return value A Pr
AudioEncoder: encode() method
WebCodecs APIwindow_and_dedicated The **`encode()`** method of the AudioEncoder interface enqueues a control message to encode a given AudioData object. ## Syntax ```js-nolint encode(data) ``` ### Parameters - `data` - : An AudioData object. ### Return value None (undefined). ### Exceptions - `InvalidStateError` DOMException - : Thrown if the state is not `"configured"`. - TypeError - : Thrown if the `
WebCodecs API
eoFrame` objects and vice-versa.  Likewise, the WebCodecs API also introduces the AudioDecoder and AudioEncoder interfaces, which transform `EncodedAudioChunk` objects into `AudioData` objects and vice-versa.  Generally there is a 1:1 correspondence between the raw and encoded versions of each med
Using the WebCodecs API
ocs/Web/API/Web_Workers_API/Transferable_objects). ```js worker.postMessage(frame, [frame]); ``` ## Audio WebCodecs supports encoding and decoding audio via AudioEncoder and AudioDecoder, using the Opus and AAC codecs. Before working with audio, there are a few important caveats to be aware of: - **Pass-through**: If you are transcoding video and do not need to modify the audio, you do not need to decode and re-e