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