From e65845ce9b24ac1887f06fbc0d6bca38777b8096 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Mon, 5 Sep 2022 14:15:33 +0300 Subject: [PATCH] Added 7000 delay after setup is done(before sendinng notify-answer to HUB --- public/index.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/public/index.js b/public/index.js index f96ae84..ebe77cd 100644 --- a/public/index.js +++ b/public/index.js @@ -300,10 +300,12 @@ const connectSendTransport = async () => { }; console.log('SEND answer', answer); - hub.emit( - 'video', - JSON.stringify(answer) - ); + setTimeout(() => { + hub.emit( + 'video', + JSON.stringify(answer) + ); + }, 7000); // Enable Close call button const closeCallBtn = document.getElementById('btnCloseCall');