This feature is not Baseline because it does not work in some of the most widely-used browsers.
The muted read-only property of the MediaStreamTrack interface returns a boolean value indicating whether or not the track is currently unable to provide media output.
Note: To implement a way for users to mute and unmute a track, use the enabled property. When a track is disabled by setting enabled to false, it generates only empty frames (audio frames in which every sample is 0, or video frames in which every pixel is black).
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.
This example counts the number of tracks in an array of MediaStreamTrack objects which are currently muted.
let mutedCount = 0;
trackList.forEach((track) => {
if (track.muted) {
mutedCount += 1;
}
});
| Specification |
|---|
| Media Capture and Streams> # dom-mediastreamtrack-muted> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
muted |
38 | 12 | 59Does not currently track the microphone's muted state from the operating system, see bug 1739163. |
25 | 11 | 38 | 59Does not currently track the microphone's muted state from the operating system, see bug 1739163. |
25 | 11 | 3.0 | 38 | 11 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/muted