[mirotalk] - move fs button, fix typo
This commit is contained in:
+4
-8
@@ -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.');
|
||||
|
||||
Reference in New Issue
Block a user