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 MediaStreamTrackGenerator.
Papers 0
This corpus is unavailable: timeout
Developer library 6
Insertable Streams for MediaStreamTrack API
ck object's source and produces a stream of video frames. - VideoTrackGenerator - : Creates a WritableStream that acts as a MediaStreamTrack video source. - MediaStreamTrackGenerator - : Creates a WritableStream that acts as a MediaStreamTrack source for either video or audio. Only available on the main thread. ## Examples The following example is from the article [Unbundling MediaStreamTrackProcessor and Vi
MediaStreamTrackGenerator
Insertable Streams for MediaStreamTrack API > [!NOTE] > Consider using VideoTrackGenerator instead. The **`MediaStreamTrackGenerator`** interface of the [Insertable Streams for MediaStreamTrack API](/docs/Web/API/Insertable_Streams_for_MediaStreamTrack_API) creates a WritableStream that acts as a MediaStreamTrack source. The object consumes a stream of media frames as input, which can be audio or video frames. ##
MediaStreamTrackGenerator: MediaStreamTrackGenerator() constructor
Insertable Streams for MediaStreamTrack API The **`MediaStreamTrackGenerator()`** constructor creates a new MediaStreamTrackGenerator object which consumes a stream of media frames and exposes a MediaStreamTrack. ## Syntax ```js-nolint new MediaStreamTrackGenerator(options) ``` ### Parameters - `options` - : An object containing the property `kind`, which is one of the following strings: - `"audio"`
MediaStreamTrackGenerator: writable property
Insertable Streams for MediaStreamTrack API The **`writable`** property of the MediaStreamTrackGenerator interface returns a WritableStream. This allows the writing of media frames to the `MediaStreamTrackGenerator`. The frames will be audio or video. The type is dictated by the kind of `MediaStreamTrackGenerator` that was created. ## Value A WritableStream. ## Examples In the following example video frames are
AudioData
Track_API), you can break a stream into individual `AudioData` objects with MediaStreamTrackProcessor, or construct an audio track from a stream of frames with MediaStreamTrackGenerator. > [!NOTE] > Find out more about audio on the web in [Digital audio concepts](/docs/Web/Media/Guides/Formats/Audio_concepts). ### The media resource An `AudioData` object contains a reference to an attached **media resource**. This
VideoFrame
rom its binary pixel representation in an ArrayBuffer, a TypedArray, or a DataView. Created frames may then be turned into a media track, for example with the MediaStreamTrackGenerator interface that creates a media track from a stream of frames. ## Examples In the following example frames are returned from a MediaStreamTrackProcessor, then encoded. See the full example and read more about it in the article [Video