[mirotalk] - move fs button, fix typo

This commit is contained in:
Miroslav Pejic
2025-10-31 13:10:04 +01:00
parent b45c1a0b08
commit d36deced18
+4 -8
View File
@@ -3493,10 +3493,11 @@ async function loadLocalMedia(stream, kind) {
myVideoNavBar.appendChild(myVideoZoomOutBtn);
}
isVideoFullScreenSupported && myVideoNavBar.appendChild(myVideoFullScreenBtn);
buttons.local.showSnapShotBtn && myVideoNavBar.appendChild(myVideoToImgBtn);
buttons.local.showVideoCircleBtn && myVideoNavBar.appendChild(myPrivacyBtn);
isVideoFullScreenSupported && myVideoNavBar.appendChild(myVideoFullScreenBtn);
myVideoNavBar.appendChild(myVideoStatusIcon);
myVideoNavBar.appendChild(myAudioStatusIcon);
myVideoNavBar.appendChild(myHandStatusIcon);
@@ -3982,10 +3983,10 @@ async function loadRemoteMediaStream(stream, peers, peer_id, kind) {
remoteExpandBtnDiv.appendChild(remoteExpandBtn);
remoteExpandBtnDiv.appendChild(remoteExpandContainerDiv);
isVideoFullScreenSupported && remoteVideoNavBar.appendChild(remoteVideoFullScreenBtn);
buttons.remote.showSnapShotBtn && remoteVideoNavBar.appendChild(remoteVideoToImgBtn);
isVideoFullScreenSupported && remoteVideoNavBar.appendChild(remoteVideoFullScreenBtn);
remoteVideoNavBar.appendChild(remoteVideoStatusIcon);
remoteVideoNavBar.appendChild(remoteAudioStatusIcon);
@@ -7575,11 +7576,6 @@ async function toggleScreenSharing(init = false) {
elemDisplay(myVideo, false);
elemDisplay(myVideoAvatarImage, true, 'block');
}
// Update privacy button (in-room only)
if (!init && myPrivacyBtn) {
isScreenStreaming ? elemDisplay(myPrivacyBtn, false) : elemDisplay(myPrivacyBtn, true);
}
} catch (err) {
if (err && err.name === 'NotAllowedError') {
console.error('Screen sharing permission was denied by the user.');