Refactor transportclose 5

This commit is contained in:
Sergiu Toma 2022-08-11 12:50:18 +03:00
parent 9c46ed4944
commit 8f7b60c78a

View File

@ -350,7 +350,7 @@ const createRecvTransport = async () => {
}
const resetCallSettings = () => {
console.log('resetCallSettings', callId);
console.log('resetCallSettings', callId, 'socket |', socket);
socket.emit('transportclose')
localVideo.srcObject = null
remoteVideo.srcObject = null
@ -399,9 +399,9 @@ const connectRecvTransport = async () => {
const closeCall = () => {
console.log('closeCall', callId);
socket.emit('transportclose')
// socket.emit('transportclose')
// Reset settings and send closeTransport to video server
// resetCallSettings()
resetCallSettings()
// // Emit 'notify-end' to Hub so the consumer will know to close the video
// const notifyEnd = {