From 2413b8977ebcfeadb541c160fe493ef457bc99f8 Mon Sep 17 00:00:00 2001 From: Jaya Allamsetty Date: Wed, 25 Sep 2024 14:55:46 -0400 Subject: [PATCH] fix(face-landmarks) Ignore muted tracks while starting detection. This fixes an issue where a user gets stuck on lobby page when they have a muted video track after the user is accepted. --- react/features/face-landmarks/FaceLandmarksDetector.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react/features/face-landmarks/FaceLandmarksDetector.ts b/react/features/face-landmarks/FaceLandmarksDetector.ts index 3c53cdef812..c2c81f158dd 100644 --- a/react/features/face-landmarks/FaceLandmarksDetector.ts +++ b/react/features/face-landmarks/FaceLandmarksDetector.ts @@ -193,8 +193,8 @@ class FaceLandmarksDetector { const state = getState(); const localVideoTrack = track || getLocalVideoTrack(state['features/base/tracks']); - if (localVideoTrack === undefined) { - logger.warn('Face landmarks detection is disabled due to missing local track.'); + if (!localVideoTrack || localVideoTrack.jitsiTrack?.isMuted()) { + logger.debug('Face landmarks detection is disabled due to missing local track.'); return; }