[mirotalksfu] - fix

هذا الالتزام موجود في:
Miroslav Pejic
2024-03-17 09:37:36 +01:00
الأصل accd465357
التزام d6367ea4cd

عرض الملف

@@ -952,6 +952,7 @@ async function handleAudioVideo() {
if (!isAudioVideoAllowed) {
hide(initAudioButton);
hide(initVideoButton);
hide(initVideoAudioRefreshButton);
}
setColor(initAudioVideoButton, isAudioVideoAllowed ? 'white' : 'red');
setColor(initAudioButton, isAudioAllowed ? 'white' : 'red');
@@ -1197,6 +1198,9 @@ function roomIsReady() {
show(chatPasteButton);
show(chatSendButton);
if (DetectRTC.isMobileDevice) {
hide(initVideoAudioRefreshButton);
hide(refreshVideoDevices);
hide(refreshAudioDevices);
BUTTONS.main.swapCameraButton && show(swapCameraButton);
rc.chatMaximize();
hide(chatTogglePin);
@@ -1688,7 +1692,7 @@ function setButtonsInit() {
if (!isAudioAllowed) hide(initAudioButton);
if (!isVideoAllowed) hide(initVideoButton);
if (!isAudioAllowed || !isVideoAllowed) hide(initAudioVideoButton);
if (!isAudioAllowed && !isVideoAllowed) hide(initVideoAudioRefreshButton);
if ((!isAudioAllowed && !isVideoAllowed) || DetectRTC.isMobileDevice) hide(initVideoAudioRefreshButton);
isAudioVideoAllowed = isAudioAllowed && isVideoAllowed;
}