[mirotalksfu] - add check isFullScreenSupported
هذا الالتزام موجود في:
@@ -221,7 +221,7 @@ class RoomClient {
|
|||||||
|
|
||||||
this._isConnected = false;
|
this._isConnected = false;
|
||||||
this.isVideoOnFullScreen = 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.isVideoPictureInPictureSupported = document.pictureInPictureEnabled;
|
||||||
this.isZoomCenterMode = false;
|
this.isZoomCenterMode = false;
|
||||||
this.isChatOpen = false;
|
this.isChatOpen = false;
|
||||||
@@ -3047,6 +3047,15 @@ class RoomClient {
|
|||||||
// FULL SCREEN
|
// FULL SCREEN
|
||||||
// ####################################################
|
// ####################################################
|
||||||
|
|
||||||
|
isFullScreenSupported() {
|
||||||
|
return (
|
||||||
|
document.fullscreenEnabled ||
|
||||||
|
document.webkitFullscreenEnabled ||
|
||||||
|
document.mozFullScreenEnabled ||
|
||||||
|
document.msFullscreenEnabled
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
toggleFullScreen(elem = null) {
|
toggleFullScreen(elem = null) {
|
||||||
let el = elem ? elem : document.documentElement;
|
let el = elem ? elem : document.documentElement;
|
||||||
document.fullscreenEnabled =
|
document.fullscreenEnabled =
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم