Refactor transportclose 4

This commit is contained in:
Sergiu Toma 2022-08-11 12:46:24 +03:00
parent 7bb45dca19
commit 9c46ed4944

View File

@ -351,7 +351,7 @@ const createRecvTransport = async () => {
const resetCallSettings = () => {
console.log('resetCallSettings', callId);
socket.emit('transportclose', { callId })
socket.emit('transportclose')
localVideo.srcObject = null
remoteVideo.srcObject = null
consumer = null
@ -399,7 +399,7 @@ const connectRecvTransport = async () => {
const closeCall = () => {
console.log('closeCall', callId);
socket.emit('transportclose', { callId })
socket.emit('transportclose')
// Reset settings and send closeTransport to video server
// resetCallSettings()