[mirotalksfu] - add check isFullScreenSupported

هذا الالتزام موجود في:
Miroslav Pejic
2024-04-22 10:09:48 +02:00
الأصل 3f214b5fbe
التزام 7e3d7a0e0e

عرض الملف

@@ -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 =