The mute event is sent to a MediaStreamTrack when the track's source is temporarily unable to provide media data. When the track is once again able to produce media output, an unmute event is sent.
During the time between the mute event and the unmute event, the value of the track's muted property is true.
You listen for the mute event using the MediaStreamTrack.onmute event handler, or by calling addEventListener() with "mute" as the event type.
The condition that most people think of as "muted" (that is, a user-toggled state of silencing a track) is actually managed using the MediaStreamTrack.enabled property, for which there are no events.
EventMediaStreamTrackThis event is of type Event and includes only the properties it defines.
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/Events/mute