[mirotalksfu] - add togglePin top

هذا الالتزام موجود في:
Miroslav Pejic
2022-11-15 14:36:20 +01:00
الأصل b4c71f953d
التزام 9fd8c9ac1e
2 ملفات معدلة مع 13 إضافات و0 حذوفات

عرض الملف

@@ -2047,7 +2047,18 @@ class RoomClient {
togglePin(position) {
if (!this.isVideoPinned) return;
switch (position) {
case 'top':
this.videoPinMediaContainer.style.top = '25%';
this.videoPinMediaContainer.style.width = '100%';
this.videoPinMediaContainer.style.height = '75%';
this.videoMediaContainer.style.top = '0%';
this.videoMediaContainer.style.right = null;
this.videoMediaContainer.style.width = null;
this.videoMediaContainer.style.width = '100% !important';
this.videoMediaContainer.style.height = '25%';
break;
case 'vertical':
this.videoPinMediaContainer.style.top = 0;
this.videoPinMediaContainer.style.width = '75%';
this.videoPinMediaContainer.style.height = '100%';
this.videoMediaContainer.style.top = 0;
@@ -2056,6 +2067,7 @@ class RoomClient {
this.videoMediaContainer.style.right = 0;
break;
case 'horizontal':
this.videoPinMediaContainer.style.top = 0;
this.videoPinMediaContainer.style.width = '100%';
this.videoPinMediaContainer.style.height = '75%';
this.videoMediaContainer.style.top = '75%';