Files
upstream-mirror 1d2bfcac0c
Some checks failed
Prosody Plugin Tests / test (push) Failing after 10m11s
Close stale issues and PRs / stale (push) Failing after 1s
snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
2026-09-15 15:56:32 +05:00

49 lines
1.2 KiB
TypeScript

import 'image-capture';
import { AnyAction } from 'redux';
import {
ADD_FACE_LANDMARKS,
CLEAR_FACE_LANDMARKS_BUFFER,
NEW_FACE_COORDINATES
} from './actionTypes';
import { FaceBox, FaceLandmarks } from './types';
/**
* Adds new face landmarks to the timeline.
*
* @param {FaceLandmarks} faceLandmarks - The new face landmarks to timeline.
* @param {boolean} addToBuffer - If true adds the face landmarks to a buffer in the reducer for webhook.
* @returns {AnyAction}
*/
export function addFaceLandmarks(faceLandmarks: FaceLandmarks, addToBuffer: boolean): AnyAction {
return {
type: ADD_FACE_LANDMARKS,
faceLandmarks,
addToBuffer
};
}
/**
* Clears the face landmarks array in the state.
*
* @returns {AnyAction}
*/
export function clearFaceExpressionBuffer(): AnyAction {
return {
type: CLEAR_FACE_LANDMARKS_BUFFER
};
}
/**
* Signals that a new face box was obtained for the local participant.
*
* @param {FaceBox} faceBox - The face box of the local participant.
* @returns {AnyAction}
*/
export function newFaceBox(faceBox: FaceBox): AnyAction {
return {
type: NEW_FACE_COORDINATES,
faceBox
};
}