LINXD-2270-p2 #19
6
app.js
6
app.js
@ -451,11 +451,13 @@ peers.on('connection', async socket => {
|
|||||||
console.log(`[consumer-resume] callId ${callId}`)
|
console.log(`[consumer-resume] callId ${callId}`)
|
||||||
|
|
||||||
if (isInitiator(callId, socket.id)) {
|
if (isInitiator(callId, socket.id)) {
|
||||||
|
console.log(`[consumer-resume] isInitiator true`);
|
||||||
await videoCalls[callId].initiatorConsumerVideo.resume();
|
await videoCalls[callId].initiatorConsumerVideo.resume();
|
||||||
await videoCalls[callId].initiatorConsumerAudio.resume();
|
await videoCalls[callId].initiatorConsumerAudio.resume();
|
||||||
} else {
|
} else {
|
||||||
await videoCalls[callId].receiverConsumerVideo.resume();
|
console.log(`[consumer-resume] isInitiator false`);
|
||||||
await videoCalls[callId].receiverConsumerAudio.resume();
|
(videoCalls[callId].receiverConsumerVideo) && await videoCalls[callId].receiverConsumerVideo.resume();
|
||||||
|
(videoCalls[callId].receiverConsumerVideo) && await videoCalls[callId].receiverConsumerAudio.resume();
|
||||||
}
|
}
|
||||||
// await videoCalls[callId].consumerVideo.resume();
|
// await videoCalls[callId].consumerVideo.resume();
|
||||||
// await videoCalls[callId].consumerAudio.resume();
|
// await videoCalls[callId].consumerAudio.resume();
|
||||||
|
Loading…
Reference in New Issue
Block a user