Insertable Streams for MediaStreamTrack API
The MediaStreamTrackProcessor() constructor creates a new MediaStreamTrackProcessor object which consumes a video MediaStreamTrack object's source and generates a stream of VideoFrames.
Syntax
new MediaStreamTrackProcessor(options)
Parameters
options- : An object with the following properties:
track- : A MediaStreamTrack.
maxBufferSize- : An integer specifying the maximum number of media frames to be buffered.
- : An object with the following properties:
Examples
In the following example a new MediaStreamTrackProcessor is created.
const trackProcessor = new MediaStreamTrackProcessor({ track: videoTrack });
Specifications
Browser compatibility
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
