Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(face-landmarks) disable on mobile web browsers

Saúl Ibarra Corretgée00b6be06c44
diff --git a/react/features/face-landmarks/FaceLandmarksDetector.ts b/react/features/face-landmarks/FaceLandmarksDetector.ts
index 039a51909a..3c53cdef81 100644
--- a/react/features/face-landmarks/FaceLandmarksDetector.ts
+++ b/react/features/face-landmarks/FaceLandmarksDetector.ts
@@ -1,6 +1,7 @@
import 'image-capture';
import './createImageBitmap';
import { IStore } from '../app/types';
+import { isMobileBrowser } from '../base/environment/utils';
import { getLocalVideoTrack } from '../base/tracks/functions';
import { getBaseUrl } from '../base/util/helpers';
@@ -88,7 +89,7 @@ class FaceLandmarksDetector {
return;
}
- if (navigator.product === 'ReactNative') {
+ if (isMobileBrowser() || navigator.product === 'ReactNative') {
logger.warn('Unsupported environment for face detection');
return;