[mirotalksfu] - add pin chat button
هذا الالتزام موجود في:
@@ -199,6 +199,7 @@ function initClient() {
|
||||
setTippy('chatSaveButton', 'Save', 'bottom');
|
||||
setTippy('chatGhostButton', 'Toggle transparent background', 'bottom');
|
||||
setTippy('chatCloseButton', 'Close', 'bottom');
|
||||
setTippy('chatTogglePin', 'Toggle pin', 'bottom');
|
||||
setTippy('chatMaxButton', 'Maximize', 'bottom');
|
||||
setTippy('chatMinButton', 'Minimize', 'bottom');
|
||||
setTippy('participantsCloseBtn', 'Close', 'right');
|
||||
@@ -950,6 +951,7 @@ function roomIsReady() {
|
||||
if (DetectRTC.isMobileDevice) {
|
||||
BUTTONS.main.swapCameraButton && show(swapCameraButton);
|
||||
rc.chatMaximize();
|
||||
hide(chatTogglePin);
|
||||
hide(chatMaxButton);
|
||||
hide(chatMinButton);
|
||||
} else {
|
||||
@@ -966,6 +968,7 @@ function roomIsReady() {
|
||||
show(ScreenFpsDiv);
|
||||
}
|
||||
}
|
||||
BUTTONS.chat.chatPinButton && show(chatTogglePin);
|
||||
BUTTONS.chat.chatMaxButton && show(chatMaxButton);
|
||||
BUTTONS.settings.pushToTalk && show(pushToTalkDiv);
|
||||
}
|
||||
@@ -1153,6 +1156,9 @@ function handleButtons() {
|
||||
chatCloseButton.onclick = () => {
|
||||
rc.toggleChat();
|
||||
};
|
||||
chatTogglePin.onclick = () => {
|
||||
rc.toggleChatPin();
|
||||
};
|
||||
chatMaxButton.onclick = () => {
|
||||
rc.chatMaximize();
|
||||
};
|
||||
@@ -1632,7 +1638,7 @@ function handleSelects() {
|
||||
refreshMainButtonsToolTipPlacement();
|
||||
};
|
||||
pinVideoPosition.onchange = () => {
|
||||
rc.togglePin(pinVideoPosition.value);
|
||||
rc.toggleVideoPin(pinVideoPosition.value);
|
||||
lsSettings.pin_grid = pinVideoPosition.selectedIndex;
|
||||
lS.setSettings(lsSettings);
|
||||
};
|
||||
@@ -1773,7 +1779,7 @@ function loadSettingsFromLocalStorage() {
|
||||
rc.handleVideoObjectFit(BtnVideoObjectFit.value);
|
||||
rc.handleVideoControls(BtnVideoControls.value);
|
||||
rc.changeBtnsBarPosition(BtnsBarPosition.value);
|
||||
rc.togglePin(pinVideoPosition.value);
|
||||
rc.toggleVideoPin(pinVideoPosition.value);
|
||||
refreshMainButtonsToolTipPlacement();
|
||||
}
|
||||
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم