RTCMultiConnection Docs

RTCMultiConnection API Reference / "stop"

  1. You can stop a single stream; all local streams; all remote streams; or all media streams:
  2. // stop all local media streams
    connection.streams.stop('local');
    
    // stop all remote media streams
    connection.streams.stop('remote');
    
    // stop all media streams
    connection.streams.stop();
    
  3. When you stop a media stream; onstreamended event will be fired for all other users.
  4. connection.onstreamended = function (e) {
        // e.mediaElement
        // e.stream
        // e.streamid
        // e.session
        // e.blobURL
        // e.type
        // e.extra
        // e.userid
    }
    

Want to ask a Question?

You can include your email for private conversation!