[mirotalksfu] - fix typo
هذا الالتزام موجود في:
@@ -68,12 +68,12 @@ function resizeVideoMedia() {
|
|||||||
|
|
||||||
function setWidth(videoMediaContainer, Cameras, width, bigWidth, margin, maxHeight) {
|
function setWidth(videoMediaContainer, Cameras, width, bigWidth, margin, maxHeight) {
|
||||||
ratio = customRatio ? 0.68 : ratio;
|
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++) {
|
for (let s = 0; s < Cameras.length; s++) {
|
||||||
Cameras[s].style.width = width + 'px';
|
Cameras[s].style.width = width + 'px';
|
||||||
Cameras[s].style.margin = margin + 'px';
|
Cameras[s].style.margin = margin + 'px';
|
||||||
Cameras[s].style.height = width * ratio + 'px';
|
Cameras[s].style.height = width * ratio + 'px';
|
||||||
if (OneParticipant) {
|
if (isOneVideoElement) {
|
||||||
Cameras[s].style.width = bigWidth + 'px';
|
Cameras[s].style.width = bigWidth + 'px';
|
||||||
Cameras[s].style.height = bigWidth * ratio + 'px';
|
Cameras[s].style.height = bigWidth * ratio + 'px';
|
||||||
let camHeigh = Cameras[s].style.height.substring(0, Cameras[s].style.height.length - 2);
|
let camHeigh = Cameras[s].style.height.substring(0, Cameras[s].style.height.length - 2);
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم