VideoTrackGenerator: muted property
Insertable Streams for MediaStreamTrack API
Insertable Streams for MediaStreamTrack API
The muted Boolean property of the VideoTrackGenerator interface can be used to temporarily halt or resume the generation of video frames in the output track.
Value
A boolean.
Examples
To pause production of video frames:
videoTrackGenerator.muted = true;
To resume production of video frames:
videoTrackGenerator.muted = false;