Remote a media-stream from all connected users
// remove all screen streams. // you can use "remove all video streams" by passing "video" // or "remove all audio streams" by passing "audio" connection.removeStream
('screen'); // remove-all but multiple streams // i.e. remove all audio and video streams // or remove all audio and screen streams connection.removeStream
({ screen: true, audio: true }); // remove a media-stream by id connection.removeStream('stream-id');
Todo: Need to update this documentation for all possible usages.