[mirotalksfu] - improve video objectFit on pin
هذا الالتزام موجود في:
@@ -1475,6 +1475,8 @@ class RoomClient {
|
|||||||
this.videoMediaContainer.style.left = 0;
|
this.videoMediaContainer.style.left = 0;
|
||||||
this.pinnedVideoPlayerId = null;
|
this.pinnedVideoPlayerId = null;
|
||||||
this.isVideoPinned = false;
|
this.isVideoPinned = false;
|
||||||
|
BtnVideoObjectFit.selectedIndex = 2; // cover
|
||||||
|
BtnVideoObjectFit.onchange();
|
||||||
}
|
}
|
||||||
|
|
||||||
// ####################################################
|
// ####################################################
|
||||||
@@ -1898,6 +1900,8 @@ class RoomClient {
|
|||||||
this.videoPinMediaContainer.appendChild(cam);
|
this.videoPinMediaContainer.appendChild(cam);
|
||||||
this.videoPinMediaContainer.style.display = 'block';
|
this.videoPinMediaContainer.style.display = 'block';
|
||||||
this.pinnedVideoPlayerId = elemId;
|
this.pinnedVideoPlayerId = elemId;
|
||||||
|
BtnVideoObjectFit.selectedIndex = 1; // contain
|
||||||
|
BtnVideoObjectFit.onchange();
|
||||||
setColor(btnPn, 'lime');
|
setColor(btnPn, 'lime');
|
||||||
} else {
|
} else {
|
||||||
if (this.pinnedVideoPlayerId != videoPlayer.id) {
|
if (this.pinnedVideoPlayerId != videoPlayer.id) {
|
||||||
@@ -1917,6 +1921,8 @@ class RoomClient {
|
|||||||
this.videoMediaContainer.appendChild(cam);
|
this.videoMediaContainer.appendChild(cam);
|
||||||
this.videoPinMediaContainer.style.display = 'none';
|
this.videoPinMediaContainer.style.display = 'none';
|
||||||
this.pinnedVideoPlayerId = null;
|
this.pinnedVideoPlayerId = null;
|
||||||
|
BtnVideoObjectFit.selectedIndex = 2; // cover
|
||||||
|
BtnVideoObjectFit.onchange();
|
||||||
setColor(btnPn, 'white');
|
setColor(btnPn, 'white');
|
||||||
}
|
}
|
||||||
handleAspectRatio();
|
handleAspectRatio();
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم