RTCMultiConnection Docs

RTCMultiConnection.streamEvents "object"

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

RTCMultiConnection.streamEvents object allows you get all local/remote audio/video/screen streams, mute or unmute any stream, and stop or remove any stream.

"streamEvents" object requires RTCMultiConnection >= v3.

Please check "connection.streams" for v2 or earlier releases.

Mute/UnMute Streams

// you can pass: 'audio' || 'video' || 'both
connection.streamEvents['stream-id'].stream.mute('both');

// or unmute
connection.streamEvents['stream-id'].stream.unmute('both');

Stop Streams

connection.streamEvents['stream-id'].stream.stop();

Latest Issues

Want to ask a Question?

You can include your email for private conversation!

Latest Updates