react-native-webrtc-firebase icon indicating copy to clipboard operation
react-native-webrtc-firebase copied to clipboard

When i stop the call it still use camera and microphone

Open umairlive490 opened this issue 4 years ago • 4 comments
trafficstars

when i click on stop call button app still uses camera and microphone

umairlive490 avatar Jan 20 '21 12:01 umairlive490

Thank you for pointing it out. I am working on this, will update this thread when complete.

DipanshKhandelwal avatar Jan 29 '21 12:01 DipanshKhandelwal

Thank you for pointing it out. I am working on this, will update this thread when complete.

If you have any updates please let me know

umairlive490 avatar Feb 03 '21 07:02 umairlive490

@DipanshKhandelwal do you have any idea about it? just share with us

minhchienwikipedia avatar Mar 04 '22 12:03 minhchienwikipedia

I found it, we can use this, stop all stream we have

stream.getTracks().forEach(function(track) {
  track.stop();
});

minhchienwikipedia avatar Mar 04 '22 12:03 minhchienwikipedia