RTCMultiConnection Docs

RTCMultiConnection.unmute "method"

HOME © Muaz Khan . @WebRTCWeb . Github . Latest issues . What's New?

RTCMultiConnection.unmute method allows you unmute any audio/video/screen stream.

UnMute stream using v3

// you can pass: 'audio' || 'video' || 'both

connection.attachStreams.forEach(function(stream) {
  stream.unmute(); // unmute all tracks
You can pass "audio" or "video" or "both" or NULL.

UnMute stream using v2

  audio: true,
  video: true,
  type: 'remote' // all remote streams
You can pass following values:
  1. "Null": To unmute all streams.
  2. "{audio:true}": To unmute only audio streams.
  3. "{video:true}": To unmute only video/screen streams.
  4. "{type:'remote'}": To unmute only remote streams.
  5. "{type:'local'}": To unmute only local streams.

onMute/OnUnMute events

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

// if local or remote stream is unmuted
connection.onunmute = function(e) {

Latest Issues

Want to ask a Question?

You can include your email for private conversation!

Latest Updates