Search code examples
kurento

Kurento: Does rtcPeer.videoEnabled = false stops the streaming


Does the following code stop the actual stream going from user to KMS?

participants[user].rtcPeer.videoEnabled = false;

When I checked into Chrome webrtcinternals, I don't see receiving packets from this peer, but wireshark does show some traffic.

-Thanks,


Solution

  • Yes. If you issue this line

     setTimeout(function() { webRtcPeer.videoEnabled = false } , 60000);
    

    in the callback where the answer from a WebRTC negotiation is processed (here, for instance), you'll see that the video stops.

    enter image description here

    What chrome is doing right now is sending a black video, that's why you see some traffic going on.