We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE


MediaStreamTrack's onmute event handler is called when the mute event is received. Such an event is sent when the track is temporarily not able to send data.


track.onmute = muteHandler;


A function to serve as an EventHandler for the mute event. The event handler function receives a single parameter: the event object, which is a simple Event object.


In this example, an onmute handler is established to set the content HTML of an element to display the "muted speaker" Emoji.

myTrack.onmute = function(evt) {
  playStateIcon.innerHTML = "&#1F507;";


Specification Status Comment
Media Capture and Streams
The definition of 'MediaStreamTrack.onmute' in that specification.
Candidate Recommendation Initial specification.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes Yes59 No Yes ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes Yes59 Yes ? ?

See also

Document Tags and Contributors

 Contributors to this page: fscholz, Sheppy, libbymc, teoli
 Last updated by: fscholz,