[mirotalksfu] - rb

هذا الالتزام موجود في:
Miroslav Pejic
2022-09-02 14:48:47 +02:00
الأصل 06e43d4b45
التزام 57d1fbbf2f

عرض الملف

@@ -1475,7 +1475,11 @@ class RoomClient {
this.videoMediaContainer.style.left = 0;
this.pinnedVideoPlayerId = null;
this.isVideoPinned = false;
BtnVideoObjectFit.selectedIndex = 2; // cover
}
adaptVideoObjectFit(index) {
// 1 (cover) 2 (contain)
BtnVideoObjectFit.selectedIndex = index;
BtnVideoObjectFit.onchange();
}
@@ -1900,8 +1904,6 @@ class RoomClient {
this.videoPinMediaContainer.appendChild(cam);
this.videoPinMediaContainer.style.display = 'block';
this.pinnedVideoPlayerId = elemId;
BtnVideoObjectFit.selectedIndex = 1; // contain
BtnVideoObjectFit.onchange();
setColor(btnPn, 'lime');
} else {
if (this.pinnedVideoPlayerId != videoPlayer.id) {
@@ -1921,8 +1923,6 @@ class RoomClient {
this.videoMediaContainer.appendChild(cam);
this.videoPinMediaContainer.style.display = 'none';
this.pinnedVideoPlayerId = null;
BtnVideoObjectFit.selectedIndex = 2; // cover
BtnVideoObjectFit.onchange();
setColor(btnPn, 'white');
}
handleAspectRatio();