This commit is contained in:
Sergiu Toma 2023-01-12 12:38:01 +02:00
parent df5b3eab90
commit c034610471

4
app.js
View File

@ -451,8 +451,8 @@ peers.on('connection', async socket => {
if (isInitiator(callId, socket.id)) {
console.log('🟩');
console.log(`[consumer-resume] isInitiator true`);
(videoCalls[callId].initiatorConsumerAudio) && await videoCalls[callId].initiatorConsumerVideo.resume();
(videoCalls[callId].initiatorConsumerAudio) && await videoCalls[callId].initiatorConsumerAudio.resume();
await videoCalls[callId].initiatorConsumerVideo.resume();
await videoCalls[callId].initiatorConsumerAudio.resume();
} else {
console.log('🟥');
console.log(`[consumer-resume] isInitiator false`);