From 55bae8b2ed3022431bf0a6dbabcccb5edb14000e Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Wed, 8 Feb 2023 03:18:00 +0200 Subject: [PATCH] Update Client show error correctly --- public/bundle.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/public/bundle.js b/public/bundle.js index ab44688..e2b6ff0 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -20455,7 +20455,7 @@ setTimeout(() => { socket.on('new-producer', ({ callId }) => { console.log(`🟢 new-producer | callId: ${callId} | Ready to consume`); - consume() + !consumerTransport && consume() }) } @@ -20825,13 +20825,13 @@ const connectRecvTransport = async () => { remoteVideo.srcObject = stream remoteVideo.setAttribute('autoplay', true) - // remoteVideo.play() - // .then(() => { - // console.log('remoteVideo PLAY') - // }) - // .catch((error) => { - // console.log(`remoteVideo PLAY ERROR | ${error.message}`) - // }) + remoteVideo.play() + .then(() => { + console.log('remoteVideo PLAY') + }) + .catch((error) => { + console.log(`remoteVideo PLAY ERROR | ${error.message}`) + }) }) }