Refactor transportclose 5
This commit is contained in:
parent
9c46ed4944
commit
8f7b60c78a
@ -350,7 +350,7 @@ const createRecvTransport = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const resetCallSettings = () => {
|
const resetCallSettings = () => {
|
||||||
console.log('resetCallSettings', callId);
|
console.log('resetCallSettings', callId, 'socket |', socket);
|
||||||
socket.emit('transportclose')
|
socket.emit('transportclose')
|
||||||
localVideo.srcObject = null
|
localVideo.srcObject = null
|
||||||
remoteVideo.srcObject = null
|
remoteVideo.srcObject = null
|
||||||
@ -399,9 +399,9 @@ const connectRecvTransport = async () => {
|
|||||||
|
|
||||||
const closeCall = () => {
|
const closeCall = () => {
|
||||||
console.log('closeCall', callId);
|
console.log('closeCall', callId);
|
||||||
socket.emit('transportclose')
|
// socket.emit('transportclose')
|
||||||
// Reset settings and send closeTransport to video server
|
// Reset settings and send closeTransport to video server
|
||||||
// resetCallSettings()
|
resetCallSettings()
|
||||||
|
|
||||||
// // Emit 'notify-end' to Hub so the consumer will know to close the video
|
// // Emit 'notify-end' to Hub so the consumer will know to close the video
|
||||||
// const notifyEnd = {
|
// const notifyEnd = {
|
||||||
|
Loading…
Reference in New Issue
Block a user