MenuMenu

RTCMultiConnection.onmute

This event is fired if any of the stream is muted/disabled

How to use

// if local or remote stream is muted
connection.onmute = function(e) {
   e.mediaElement.srcObject = null;
   e.mediaElement.setAttribute('poster', 'photo.jpg');
};