Refactor transportclose 5
This commit is contained in:
parent
9c46ed4944
commit
8f7b60c78a
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user