Back to Content

VideoTrackGenerator: muted property

files/en-us/web/api/videotrackgenerator/muted/index.md

latest535 B
Original Source

{{APIRef("Insertable Streams for MediaStreamTrack API")}}{{SeeCompatTable}}

The muted Boolean property of the {{domxref("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:

js
videoTrackGenerator.muted = true;

To resume production of video frames:

js
videoTrackGenerator.muted = false;

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}