[mirotalk] - #323 - hide full-screen button if not supported

This commit is contained in:
Miroslav Pejic
2025-12-14 20:24:56 +01:00
parent aebd084ab2
commit 937f5a7556
+7 -4
View File
@@ -1213,10 +1213,13 @@ function initClientPeer() {
return userLog('error', 'This browser seems not supported WebRTC!');
}
// check if video Full screen supported on default true
if (peerInfo.isMobileDevice && peerInfo.osName === 'iOS') {
isVideoFullScreenSupported = false;
}
// Check if video full screen is supported by the browser
isVideoFullScreenSupported =
typeof document !== 'undefined' &&
('fullscreenEnabled' in document ||
'webkitFullscreenEnabled' in document ||
'mozFullScreenEnabled' in document ||
'msFullscreenEnabled' in document);
console.log('01. Connecting to signaling server');