Skip to content

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

fix(face-landmarks) Do not start detection on muted tracks

Jaya Allamsetty32b8c62ec95e
diff --git a/react/features/face-landmarks/middleware.ts b/react/features/face-landmarks/middleware.ts
index 39837a878b..186756b208 100644
--- a/react/features/face-landmarks/middleware.ts
+++ b/react/features/face-landmarks/middleware.ts
@@ -63,9 +63,9 @@ MiddlewareRegistry.register((store: IStore) => (next: Function) => (action: any)
return next(action);
}
case TRACK_ADDED: {
- const { jitsiTrack: { isLocal, videoType } } = action.track;
+ const { jitsiTrack: { isLocal, muted, videoType } } = action.track;
- if (videoType === 'camera' && isLocal()) {
+ if (videoType === 'camera' && isLocal() && !muted) {
// need to pass this since the track is not yet added in the store
FaceLandmarksDetector.startDetection(store, action.track);
}