Refactor transportclose 4
This commit is contained in:
parent
7bb45dca19
commit
9c46ed4944
@ -351,7 +351,7 @@ const createRecvTransport = async () => {
|
|||||||
|
|
||||||
const resetCallSettings = () => {
|
const resetCallSettings = () => {
|
||||||
console.log('resetCallSettings', callId);
|
console.log('resetCallSettings', callId);
|
||||||
socket.emit('transportclose', { callId })
|
socket.emit('transportclose')
|
||||||
localVideo.srcObject = null
|
localVideo.srcObject = null
|
||||||
remoteVideo.srcObject = null
|
remoteVideo.srcObject = null
|
||||||
consumer = null
|
consumer = null
|
||||||
@ -399,7 +399,7 @@ const connectRecvTransport = async () => {
|
|||||||
|
|
||||||
const closeCall = () => {
|
const closeCall = () => {
|
||||||
console.log('closeCall', callId);
|
console.log('closeCall', callId);
|
||||||
socket.emit('transportclose', { callId })
|
socket.emit('transportclose')
|
||||||
// Reset settings and send closeTransport to video server
|
// Reset settings and send closeTransport to video server
|
||||||
// resetCallSettings()
|
// resetCallSettings()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user