Added log

This commit is contained in:
Sergiu Toma 2023-01-12 12:50:40 +02:00
parent e6c08a2c1d
commit 9716bddd71

1
app.js
View File

@ -446,6 +446,7 @@ peers.on('connection', async socket => {
*/ */
socket.on('consumer-resume',() => { socket.on('consumer-resume',() => {
try { try {
console.log(`[consumer-resume] callId ${callId}`)
const callId = socketDetails[socket.id]; const callId = socketDetails[socket.id];
if (isInitiator(callId, socket.id)) { if (isInitiator(callId, socket.id)) {
videoCalls[callId].initiatorConsumerVideo && videoCalls[callId].initiatorConsumerVideo?.resume(); videoCalls[callId].initiatorConsumerVideo && videoCalls[callId].initiatorConsumerVideo?.resume();