Friday 21 April 2017

the event firing with track.stop() function

i want to stop sharing my video call and i use the peerConnection.removeStream(localStream); function with the event onremovestream but i find that it's deprecated and then the onremovestream doesn't fired anymore,i tried to use the track.stop() function like this :

 var videoTracks = localStream.getVideoTracks();
    videoTracks.forEach(function(track) {
    track.stop();
    }); 

now i want to know the event fired with that function to know when the video call is stopped in the remote peer . any help ?



via fatima-z boujrar

No comments:

Post a Comment