1 parent 9d06cb3 commit 5f699edCopy full SHA for 5f699ed
1 file changed
frontend/src/components/call/hooks/useCall.ts
@@ -74,6 +74,7 @@ peer.ontrack = (event) => {
74
remoteAudioRef.current.srcObject = remoteStreamRef.current;
75
remoteAudioRef.current.muted = false;
76
remoteAudioRef.current.volume = 1;
77
+ remoteAudioRef.current.play().catch(() => {});
78
}
79
};
80
@@ -276,6 +277,7 @@ if (remoteVideoRef.current) remoteVideoRef.current.srcObject = null;
276
277
if (remoteAudioRef.current) remoteAudioRef.current.srcObject = null;
278
if (localVideoRef.current) localVideoRef.current.srcObject = null;
279
280
+ remoteStreamRef.current = null;
281
282
283
// END CALL
0 commit comments