Skip to content

Commit 774a9bd

Browse files
committed
add log statements
1 parent b1d6959 commit 774a9bd

File tree

1 file changed

+3
-0
lines changed
  • frontend/src/app/collaboration/components

1 file changed

+3
-0
lines changed

frontend/src/app/collaboration/components/video.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,16 @@ const VideoCall = ({ provider }: VideoCallProps) => {
227227
removed.forEach((clientId) => {
228228
console.log("Client disconnected:", clientId);
229229
if (remoteVideoRef.current) {
230+
console.log("remote video exists");
230231
if (clientId !== provider.awareness.clientID) {
231232
remoteVideoRef.current.srcObject = null;
232233
remoteStreamRef.current = null;
233234
setRemoteVideoSourceObject(false);
234235
iceCandidatesQueue.current = [];
235236
startPC();
237+
console.log(`Video start ${videoStart}`);
236238
if (videoStart) {
239+
console.log("restarting call");
237240
startCall();
238241
}
239242
} else {

0 commit comments

Comments
 (0)