mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: bug fix when checking system requirements on motorola edge devices
parent
ba0e736da9
commit
58c15b0e3c
|
@ -348,7 +348,9 @@ export class OpenVidu {
|
||||||
platform.isSafariBrowser() ||
|
platform.isSafariBrowser() ||
|
||||||
platform.isAndroidBrowser() || // Android WebView & Ionic apps for Android
|
platform.isAndroidBrowser() || // Android WebView & Ionic apps for Android
|
||||||
platform.isElectron() ||
|
platform.isElectron() ||
|
||||||
platform.isNodeJs()
|
platform.isNodeJs() ||
|
||||||
|
// TODO: remove when updating platform detection library
|
||||||
|
platform.isMotorolaEdgeDevice()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -101,6 +101,14 @@ export class PlatformUtils {
|
||||||
return platform.name === 'Samsung Internet Mobile' || platform.name === 'Samsung Internet';
|
return platform.name === 'Samsung Internet Mobile' || platform.name === 'Samsung Internet';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: This method exists to overcome bug https://github.com/bestiejs/platform.js/issues/184
|
||||||
|
/**
|
||||||
|
* @hidden
|
||||||
|
*/
|
||||||
|
public isMotorolaEdgeDevice(): boolean {
|
||||||
|
return platform.product?.toLowerCase().includes('motorola edge') || false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
|
@ -168,10 +176,14 @@ export class PlatformUtils {
|
||||||
this.isSamsungBrowser() ||
|
this.isSamsungBrowser() ||
|
||||||
this.isIonicAndroid() ||
|
this.isIonicAndroid() ||
|
||||||
this.isIonicIos() ||
|
this.isIonicIos() ||
|
||||||
this.isElectron()
|
this.isElectron() ||
|
||||||
|
// TODO: remove when possible
|
||||||
|
this.isMotorolaEdgeDevice()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue