W3cubDocs

/DOM

MediaStreamTrack.onmute

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

Syntax

track.onmute = function;

Value

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.

Example

dc.onmute = function(ev) { alert("mute event detected!"); };

Specifications

Specification Status Comment
Media Capture and Streams
The definition of 'MediaStreamTrack.onmute' in that specification.
Editor's Draft Initial specification.

Browser compatibility

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) (Yes) No support No support (Yes) ?
Feature Android Chrome for Android Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? ? (Yes) No support No support ? ?

See also

© 2005–2017 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/API/MediaStreamTrack/onmute