dlavrantonis

Results 24 comments of dlavrantonis

assume that you are in a state where two established webrtc sessions are getting rendered in a view. User performs an action that triggers the stopping/clearing procedures for these sessions...

@8BallBomBom thank you for your replies. After further digging, it seems that something hangs when trying to stop the local tracks. If i don't do that, the problem never appears...

@8BallBomBom Just tried your suggestion. Things went even worse: No "connectionstatechange" event is fired now. ```javascript public clearSession() { if (this._localStream) { this._localStream.getTracks().map( track => track.stop() ); this._localStream = null;...

@saghul if I got you correctly, you asked the below: ```javascript public clearSession() { if (this._localStream) { var once = true; this._localStream.getTracks().map( track => { if (once) { track.release() once...

@8BallBomBom same result ```javascript public clearSession() { if (this._localStream) { var once = true; this._localStream.getTracks().map( track => { track.stop() if (once) { track.release() once = false; } } ); this._localStream.release()...

@saghul I'm importing directly. Will try your suggestion later today and let you know

@saghul Tried your last suggestion, problem still remains.

[log.txt](https://github.com/react-native-webrtc/react-native-webrtc/files/11264309/log.txt) Attached. **Equivalent code:** _When starting the call:_ ```javascript console.log("before calling getUserMedia") this._localStream = await mediaDevices.getUserMedia({ audio: true, video: true }); console.log("after calling getUserMedia") ``` _When terminating the call:_ ```javascript...

> Sorry for the delay No worries > Also are you by any chance using any other plugins which might use the camera and/or microphone? Nope, the first time I...

`04-18 19:31:19.869 11791 12168 I ReactNativeJS: before calling getUserMedia localstream:undefined` Please check this instance. It isnt. All instances here (via notepad++): ![image](https://user-images.githubusercontent.com/27243615/233626808-3b1f49d1-d158-4b82-97a2-aba1b007d7cc.png)