Skip to content

Commit

Permalink
fix(face-landmarks) Ignore muted tracks while starting detection.
Browse files Browse the repository at this point in the history
This fixes an issue where a user gets stuck on lobby page when they have a muted video track after the user is accepted.
  • Loading branch information
jallamsetty1 authored and damencho committed Sep 25, 2024
1 parent 50b9093 commit 2413b89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react/features/face-landmarks/FaceLandmarksDetector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2413b89

Please sign in to comment.