diff --git a/public/bundle.js b/public/bundle.js index e3ff0d7..2075c3a 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -20368,7 +20368,7 @@ const ASSET_NAME = urlParams.get('assetName') || null; const ASSET_TYPE = urlParams.get('assetType') || null; let callId = parseInt(urlParams.get('callId')) || null; const IS_PRODUCER = urlParams.get('producer') === 'true' ? true : false -let remoteVideo = document.getElementById('localVideo') +let remoteVideo = document.getElementById('remoteVideo') remoteVideo.defaultMuted = true console.log('[URL] ASSET_ID', ASSET_ID, '| ACCOUNT_ID', ACCOUNT_ID, '| callId', callId, ' | IS_PRODUCER', IS_PRODUCER) @@ -20807,6 +20807,8 @@ const connectRecvTransport = async () => { socket.emit('consumer-resume') + console.log('stream', stream); + remoteVideo.srcObject = stream remoteVideo.setAttribute('autoplay', true) remoteVideo.setAttribute('muted', false) diff --git a/public/index.js b/public/index.js index b565976..b315c02 100644 --- a/public/index.js +++ b/public/index.js @@ -10,7 +10,7 @@ const ASSET_NAME = urlParams.get('assetName') || null; const ASSET_TYPE = urlParams.get('assetType') || null; let callId = parseInt(urlParams.get('callId')) || null; const IS_PRODUCER = urlParams.get('producer') === 'true' ? true : false -let remoteVideo = document.getElementById('localVideo') +let remoteVideo = document.getElementById('remoteVideo') remoteVideo.defaultMuted = true console.log('[URL] ASSET_ID', ASSET_ID, '| ACCOUNT_ID', ACCOUNT_ID, '| callId', callId, ' | IS_PRODUCER', IS_PRODUCER) @@ -449,6 +449,8 @@ const connectRecvTransport = async () => { socket.emit('consumer-resume') + console.log('stream', stream); + remoteVideo.srcObject = stream remoteVideo.setAttribute('autoplay', true) remoteVideo.setAttribute('muted', false)