fix(face-landmarks) Do not start detection on muted tracks
This commit is contained in:
parent
a9bc83db03
commit
32b8c62ec9
|
@ -63,9 +63,9 @@ MiddlewareRegistry.register((store: IStore) => (next: Function) => (action: any)
|
||||||
return next(action);
|
return next(action);
|
||||||
}
|
}
|
||||||
case TRACK_ADDED: {
|
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
|
// need to pass this since the track is not yet added in the store
|
||||||
FaceLandmarksDetector.startDetection(store, action.track);
|
FaceLandmarksDetector.startDetection(store, action.track);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue