Thursday 15 January 2015

javascript - RTCSessionDescription and video/audio broadcast -


How can I stop the audio and / or video transmissions of the user once I change the details of the session between two partners ? Do I need to exchange session details again?

  1. "broadcast" is probably not correct, peerconnection is always the only peer-cum-peer.
  2. To get audio / video stream from user's devices, you get user MDA and call addStream () to send them to another colleague PeerConcoding object.

    Then whether or not to send the stream to the user No to call it AdStream () Like "Send Audio / Video to Other Users?" Say a popup when asked, if it calls "yes" to addStream () on the peer connection object, otherwise do not call it.

    Edit the comment to answer the question :

    If you want to stop sending audio and / or video, then in the form of parameters To remove only call removeStream () on the Purchoning Object with the stream, this API speeds will speed up renegotiation.

    See for more information.

No comments:

Post a Comment