MediaStreamTrackProcessor: MediaStreamTrackProcessor() constructor
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
The MediaStreamTrackProcessor() constructor creates a new MediaStreamTrackProcessor object which consumes a video MediaStreamTrack object's source and generates a stream of VideoFrames.
Syntax
js
new MediaStreamTrackProcessor(options)
Parameters
options-
An object with the following properties:
trackmaxBufferSizeOptional-
An integer specifying the maximum number of media frames to be buffered.
Examples
In the following example a new MediaStreamTrackProcessor is created.
js
const trackProcessor = new MediaStreamTrackProcessor({ track: videoTrack });
Specifications
| Specification |
|---|
| MediaStreamTrack Insertable Media Processing using Streams # dom-mediastreamtrackprocessor-mediastreamtrackprocessor |
Browser compatibility
| desktop | mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
MediaStreamTrackProcessor() constructor
|
|
|
|
|
|
|
|
|
|
|
|
|
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- No support
- No support