LINXD-2329: Don't close the call if initiator or receiver close the transport #28
@ -20455,7 +20455,7 @@ setTimeout(() => {
|
|||||||
|
|
||||||
socket.on('new-producer', ({ callId }) => {
|
socket.on('new-producer', ({ callId }) => {
|
||||||
console.log(`🟢 new-producer | callId: ${callId} | Ready to consume`);
|
console.log(`🟢 new-producer | callId: ${callId} | Ready to consume`);
|
||||||
// consume()
|
consume()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -20735,7 +20735,6 @@ const connectSendTransport = async () => {
|
|||||||
// Enable Close call button
|
// Enable Close call button
|
||||||
const closeCallBtn = document.getElementById('btnCloseCall');
|
const closeCallBtn = document.getElementById('btnCloseCall');
|
||||||
closeCallBtn.removeAttribute('disabled');
|
closeCallBtn.removeAttribute('disabled');
|
||||||
consume()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const createRecvTransport = async () => {
|
const createRecvTransport = async () => {
|
||||||
@ -20775,11 +20774,7 @@ const createRecvTransport = async () => {
|
|||||||
errback(error)
|
errback(error)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
connectRecvTransport()
|
||||||
consumerTransport.observer.on("newproducer", (producer) => {
|
|
||||||
console.log("new producer created [id:%s]", producer.id);
|
|
||||||
});
|
|
||||||
// connectRecvTransport()
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ setTimeout(() => {
|
|||||||
|
|
||||||
socket.on('new-producer', ({ callId }) => {
|
socket.on('new-producer', ({ callId }) => {
|
||||||
console.log(`🟢 new-producer | callId: ${callId} | Ready to consume`);
|
console.log(`🟢 new-producer | callId: ${callId} | Ready to consume`);
|
||||||
// consume()
|
consume()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -377,8 +377,6 @@ const connectSendTransport = async () => {
|
|||||||
// Enable Close call button
|
// Enable Close call button
|
||||||
const closeCallBtn = document.getElementById('btnCloseCall');
|
const closeCallBtn = document.getElementById('btnCloseCall');
|
||||||
closeCallBtn.removeAttribute('disabled');
|
closeCallBtn.removeAttribute('disabled');
|
||||||
// consume()
|
|
||||||
createRecvTransport()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const createRecvTransport = async () => {
|
const createRecvTransport = async () => {
|
||||||
@ -418,11 +416,7 @@ const createRecvTransport = async () => {
|
|||||||
errback(error)
|
errback(error)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
connectRecvTransport()
|
||||||
consumerTransport.observer.on("newproducer", (producer) => {
|
|
||||||
console.log("new producer created [id:%s]", producer.id);
|
|
||||||
});
|
|
||||||
// connectRecvTransport()
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user