video size bug

This commit is contained in:
Ben Arc 2021-04-20 14:07:27 +01:00
parent 8f666427b6
commit 8f3a8e4880

View File

@ -260,11 +260,11 @@
}, 5000)
}
if (res[1] == 'true') {
document.getElementById('videoElement').style.width = '20%'
document.getElementById('videoCamera').style.width = '20%'
self.initScreenShare()
}
if (res[1] == 'false') {
document.getElementById('videoElement').style.width = '100%'
document.getElementById('videoCamera').style.width = '100%'
document.getElementById('videoScreen').src = null
}
console.log(res[2])