diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index 60c48dce..6eac24aa 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -221,7 +221,7 @@ class RoomClient { this._isConnected = false; this.isVideoOnFullScreen = false; - this.isVideoFullScreenSupported = peer_info.is_mobile_device && peer_info.os_name === 'iOS' ? false : true; + this.isVideoFullScreenSupported = this.isFullScreenSupported(); this.isVideoPictureInPictureSupported = document.pictureInPictureEnabled; this.isZoomCenterMode = false; this.isChatOpen = false; @@ -3047,6 +3047,15 @@ class RoomClient { // FULL SCREEN // #################################################### + isFullScreenSupported() { + return ( + document.fullscreenEnabled || + document.webkitFullscreenEnabled || + document.mozFullScreenEnabled || + document.msFullscreenEnabled + ); + } + toggleFullScreen(elem = null) { let el = elem ? elem : document.documentElement; document.fullscreenEnabled =