From b287e7d0e745701613a85b41c27e1f96d2dc08cc Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Fri, 13 Jan 2023 19:33:24 +0200 Subject: [PATCH] test --- public/bundle.js | 5 ++++- public/index.js | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/public/bundle.js b/public/bundle.js index e9b17f7..6c09d27 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -20449,10 +20449,13 @@ setTimeout(() => { console.log(`[MEDIA] ${config.mediasoupAddress} | connected: ${socket.connected} | existsProducer: ${existsProducer}`) if (!IS_PRODUCER && existsProducer && consumer === undefined) { goConnect() - // document.getElementById('btnRecvSendTransport').click(); } if (IS_PRODUCER && urlParams.get('testing') === 'true') { getLocalStream() } }) + + socket.on('new-producer', ({ callId }) => { + console.log(`🟥 new-producer | callId: ${callId}`); + }) } if (IS_PRODUCER === true) { diff --git a/public/index.js b/public/index.js index 1a42ea7..12fdebd 100644 --- a/public/index.js +++ b/public/index.js @@ -91,7 +91,6 @@ setTimeout(() => { console.log(`[MEDIA] ${config.mediasoupAddress} | connected: ${socket.connected} | existsProducer: ${existsProducer}`) if (!IS_PRODUCER && existsProducer && consumer === undefined) { goConnect() - // document.getElementById('btnRecvSendTransport').click(); } if (IS_PRODUCER && urlParams.get('testing') === 'true') { getLocalStream() } })