diff --git a/example/src/conference.tsx b/example/src/conference.tsx index cf9e31e..6e61623 100644 --- a/example/src/conference.tsx +++ b/example/src/conference.tsx @@ -129,8 +129,13 @@ export default function Conference() { } }, callbackError: (err: any, data: any) => { - console.error('callbackError', err, data); - clearRoomInfoInterval(); + if (err === "no_active_streams_in_room") { + // it throws this error when there is no stream in the room + // so we shouldn't reset streams list + } else { + console.error('callbackError', err, data); + clearRoomInfoInterval(); + } }, peer_connection_config: { iceServers: [ diff --git a/samples/conference/src/conference.tsx b/samples/conference/src/conference.tsx index 73adc9e..7502c56 100644 --- a/samples/conference/src/conference.tsx +++ b/samples/conference/src/conference.tsx @@ -129,8 +129,13 @@ export default function Conference() { } }, callbackError: (err: any, data: any) => { - console.error('callbackError', err, data); - clearRoomInfoInterval(); + if (err === "no_active_streams_in_room") { + // it throws this error when there is no stream in the room + // so we shouldn't reset streams list + } else { + console.error('callbackError', err, data); + clearRoomInfoInterval(); + } }, peer_connection_config: { iceServers: [