comsume-undefined #22
16
app.js
16
app.js
@ -448,19 +448,11 @@ peers.on('connection', async socket => {
|
||||
try {
|
||||
const callId = socketDetails[socket.id];
|
||||
if (isInitiator(callId, socket.id)) {
|
||||
if (videoCalls[callId]?.initiatorConsumerVideo){
|
||||
videoCalls[callId].initiatorConsumerVideo?.resume();
|
||||
}
|
||||
if (videoCalls[callId]?.initiatorConsumerAudio){
|
||||
videoCalls[callId].initiatorConsumerAudio?.resume();
|
||||
}
|
||||
videoCalls[callId].initiatorConsumerVideo && videoCalls[callId].initiatorConsumerVideo?.resume();
|
||||
videoCalls[callId].initiatorConsumerAudio && videoCalls[callId].initiatorConsumerAudio?.resume();
|
||||
} else {
|
||||
if (videoCalls[callId]?.receiverConsumerVideo) {
|
||||
videoCalls[callId].receiverConsumerVideo?.resume();
|
||||
}
|
||||
if (videoCalls[callId]?.receiverConsumerAudio) {
|
||||
videoCalls[callId].receiverConsumerAudio?.resume();
|
||||
}
|
||||
videoCalls[callId].receiverConsumerVideo && videoCalls[callId].receiverConsumerVideo?.resume();
|
||||
videoCalls[callId].receiverConsumerAudio && videoCalls[callId].receiverConsumerAudio?.resume();
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(`ERROR | consumer-resume | callId ${socketDetails[socket.id]} | ${error.message}`);
|
||||
|
Loading…
Reference in New Issue
Block a user