|
|
|
|
@ -68,12 +68,12 @@ function resizeVideoMedia() {
|
|
|
|
|
|
|
|
|
|
function setWidth(videoMediaContainer, Cameras, width, bigWidth, margin, maxHeight) {
|
|
|
|
|
ratio = customRatio ? 0.68 : ratio;
|
|
|
|
|
let OneParticipant = videoMediaContainer.childElementCount == 1 ? true : false;
|
|
|
|
|
let isOneVideoElement = videoMediaContainer.childElementCount == 1 ? true : false;
|
|
|
|
|
for (let s = 0; s < Cameras.length; s++) {
|
|
|
|
|
Cameras[s].style.width = width + 'px';
|
|
|
|
|
Cameras[s].style.margin = margin + 'px';
|
|
|
|
|
Cameras[s].style.height = width * ratio + 'px';
|
|
|
|
|
if (OneParticipant) {
|
|
|
|
|
if (isOneVideoElement) {
|
|
|
|
|
Cameras[s].style.width = bigWidth + 'px';
|
|
|
|
|
Cameras[s].style.height = bigWidth * ratio + 'px';
|
|
|
|
|
let camHeigh = Cameras[s].style.height.substring(0, Cameras[s].style.height.length - 2);
|
|
|
|
|
|