WIP: router-close-connections #2

Closed
sergiu wants to merge 13 commits from router-close-connections into master
Showing only changes of commit 6d13805ac6 - Show all commits

View File

@ -155,7 +155,13 @@ const getLocalStream = () => {
const goConnect = () => {
console.log('[goConnect] device:', device);
device === undefined ? getRtpCapabilities() : goCreateTransport()
setTimeout(() => {
hub.emit(
'video',
JSON.stringify(answer)
);
device === undefined ? getRtpCapabilities() : goCreateTransport()
}, 7000);
}
const goCreateTransport = () => {
@ -300,12 +306,12 @@ const connectSendTransport = async () => {
};
console.log('SEND answer', answer);
setTimeout(() => {
hub.emit(
'video',
JSON.stringify(answer)
);
}, 7000);
// setTimeout(() => {
// hub.emit(
// 'video',
// JSON.stringify(answer)
// );
// }, 7000);
// Enable Close call button
const closeCallBtn = document.getElementById('btnCloseCall');