MenuMenu

RTCMultiConnection.unmute

UnMute i.e. enable audio, video or screen track

How to use

var localStream = connection.attachStreams[0];
localStream.unmute('both');

// or
var firstRemoteStream = connection.streamEvents.selectFirst({ remote: true }).stream;
firstRemoteStream.unmute();

// or
var streamByUserId = connection.streamEvents.selectFirst({ userid: 'remote-userid' }).stream;
streamByUserId.unmute();

You can pass "audio", "video" or "both" on "stream.unmute" method.