LH-276: Update producer close event handler
This commit is contained in:
parent
68db146643
commit
0230e668e4
2
app.js
2
app.js
@ -506,6 +506,8 @@ peers.on('connection', async (socket) => {
|
||||
} catch (error) {
|
||||
console.log('sssss22222', error.message);
|
||||
}
|
||||
console.log('videoCalls[callId].receiverConsumerVideo', videoCalls[callId].receiverConsumerVideo);
|
||||
console.log('videoCalls[callId].receiverConsumerAudio', videoCalls[callId].receiverConsumerAudio);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(`[consumer-resume] | ERROR | callId: ${socketDetails[socket.id]} | isInitiator: ${isInitiator} | error: ${error.message}`);
|
||||
|
@ -20832,7 +20832,6 @@ const connectRecvTransport = async () => {
|
||||
console.log('❗ Don\'t have AUDIO stream to consume');
|
||||
}
|
||||
|
||||
socket.emit('consumer-resume')
|
||||
|
||||
remoteVideo.srcObject = stream
|
||||
remoteVideo.setAttribute('autoplay', true)
|
||||
@ -20840,6 +20839,7 @@ const connectRecvTransport = async () => {
|
||||
remoteVideo.play()
|
||||
.then(() => {
|
||||
console.log('remoteVideo PLAY')
|
||||
socket.emit('consumer-resume')
|
||||
})
|
||||
.catch((error) => {
|
||||
displayError(`remoteVideo PLAY ERROR | ${error.message}`)
|
||||
|
@ -474,7 +474,6 @@ const connectRecvTransport = async () => {
|
||||
console.log('❗ Don\'t have AUDIO stream to consume');
|
||||
}
|
||||
|
||||
socket.emit('consumer-resume')
|
||||
|
||||
remoteVideo.srcObject = stream
|
||||
remoteVideo.setAttribute('autoplay', true)
|
||||
@ -482,6 +481,7 @@ const connectRecvTransport = async () => {
|
||||
remoteVideo.play()
|
||||
.then(() => {
|
||||
console.log('remoteVideo PLAY')
|
||||
socket.emit('consumer-resume')
|
||||
})
|
||||
.catch((error) => {
|
||||
displayError(`remoteVideo PLAY ERROR | ${error.message}`)
|
||||
|
Loading…
Reference in New Issue
Block a user