MediaStreamTrack: muted property - Web APIs | MDN
Value
A boolean which is true if the track is currently muted, or
false if the track is currently unmuted.
Note:
When possible, avoid polling muted to monitor the track's muting status.
Instead, add event listeners for the mute and unmute events.
Examples
This example counts the number of tracks in an array of MediaStreamTrack
objects which are currently muted.
js
let mutedCount = 0;
trackList.forEach((track) => {
if (track.muted) {
mutedCount += 1;
}
});
Specifications
| Specification |
|---|
| Media Capture and Streams # dom-mediastreamtrack-muted |