From 6ae0c3571e0a808e3b51c0449755a2166f4a154d Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Wed, 8 Feb 2023 03:28:15 +0200 Subject: [PATCH] Update Client show error correctly --- public/bundle.js | 5 ++++- public/index.js | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/public/bundle.js b/public/bundle.js index 5318496..13152d4 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -20455,7 +20455,6 @@ setTimeout(() => { socket.on('new-producer', ({ callId }) => { console.log(`🟢 new-producer | callId: ${callId} | Ready to consume`); - remoteVideo.play() consume() }) } @@ -20580,6 +20579,10 @@ const createDevice = async () => { routerRtpCapabilities: rtpCapabilities }) + device.observer.on("newtransport", (transport) => { + console.log("new transport created [id:%s]", transport.id); + }); + console.log('Device RTP Capabilities', device.rtpCapabilities) console.log('[createDevice] device', device); diff --git a/public/index.js b/public/index.js index bf4acdb..d2b5a3c 100644 --- a/public/index.js +++ b/public/index.js @@ -97,7 +97,6 @@ setTimeout(() => { socket.on('new-producer', ({ callId }) => { console.log(`🟢 new-producer | callId: ${callId} | Ready to consume`); - remoteVideo.play() consume() }) } @@ -222,6 +221,10 @@ const createDevice = async () => { routerRtpCapabilities: rtpCapabilities }) + device.observer.on("newtransport", (transport) => { + console.log("new transport created [id:%s]", transport.id); + }); + console.log('Device RTP Capabilities', device.rtpCapabilities) console.log('[createDevice] device', device);