This commit is contained in:
Sergiu Toma 2022-12-19 13:17:11 +02:00
parent 381e665062
commit 2a6f24b2bb
2 changed files with 6 additions and 2 deletions

View File

@ -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)

View File

@ -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)