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

This commit is contained in:
Jaya Allamsetty 2022-09-23 13:45:51 -04:00
parent a9bc83db03
commit 32b8c62ec9
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}