Skip to content

Commit 5f699ed

Browse files
committed
added msg remote streamref
1 parent 9d06cb3 commit 5f699ed

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

frontend/src/components/call/hooks/useCall.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ peer.ontrack = (event) => {
7474
remoteAudioRef.current.srcObject = remoteStreamRef.current;
7575
remoteAudioRef.current.muted = false;
7676
remoteAudioRef.current.volume = 1;
77+
remoteAudioRef.current.play().catch(() => {});
7778
}
7879
};
7980

@@ -276,6 +277,7 @@ if (remoteVideoRef.current) remoteVideoRef.current.srcObject = null;
276277
if (remoteAudioRef.current) remoteAudioRef.current.srcObject = null;
277278
if (localVideoRef.current) localVideoRef.current.srcObject = null;
278279

280+
remoteStreamRef.current = null;
279281
};
280282

281283
// END CALL

0 commit comments

Comments
 (0)