Added 7000 delay after setup is done(before sendinng notify-answer to HUB

This commit is contained in:
Sergiu Toma 2022-09-05 14:15:33 +03:00
parent 6682dd9482
commit e65845ce9b

View File

@ -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');