From 86cda75b39e012308719846cab4ab303c7a137cc Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Fri, 15 Nov 2024 18:52:42 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(frontend)=20tune=20connection=20pa?= =?UTF-8?q?rameters=20for=20low=20bandwidth=20clients?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DINUM users face connection issues in bandwidth-constrained environments. They cannot reach their room, the peer connection timeouts while negotiating TURN/TLS handshake (from our current understanding). I am not sure this issue is linked to those parameters, at least try something. --- src/frontend/src/features/rooms/components/Conference.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/frontend/src/features/rooms/components/Conference.tsx b/src/frontend/src/features/rooms/components/Conference.tsx index 71ea9391..7e966ee4 100644 --- a/src/frontend/src/features/rooms/components/Conference.tsx +++ b/src/frontend/src/features/rooms/components/Conference.tsx @@ -89,6 +89,13 @@ export const Conference = ({ ) } + // Some clients (like DINUM) operate in bandwidth-constrained environments + // These settings help ensure successful connections in poor network conditions + const connectOptions = { + maxRetries: 5, // Default: 1. Only for unreachable server scenarios + peerConnectionTimeout: 60000, // Default: 15s. Extended for slow TURN/TLS negotiation + } + return ( @@ -99,6 +106,7 @@ export const Conference = ({ connect={true} audio={userConfig.audioEnabled} video={userConfig.videoEnabled} + connectOptions={connectOptions} > {showInviteDialog && (