From 937f5a7556ee3efc8364274a5e278e846713d2a5 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Sun, 14 Dec 2025 20:24:56 +0100 Subject: [PATCH] [mirotalk] - #323 - hide full-screen button if not supported --- public/js/client.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/public/js/client.js b/public/js/client.js index e72d8adc..f26adf4a 100644 --- a/public/js/client.js +++ b/public/js/client.js @@ -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');