From 333969f333de3419d3b15c132f765a983cbb07b9 Mon Sep 17 00:00:00 2001 From: Ayush Goyal Date: Thu, 21 Nov 2024 21:07:19 +0530 Subject: [PATCH] Add stream track capabilities to metadata --- .../components/FaceLivenessDetector/service/machine/machine.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-liveness/src/components/FaceLivenessDetector/service/machine/machine.ts b/packages/react-liveness/src/components/FaceLivenessDetector/service/machine/machine.ts index 9fadf5c4dff..5a7d6cb691e 100644 --- a/packages/react-liveness/src/components/FaceLivenessDetector/service/machine/machine.ts +++ b/packages/react-liveness/src/components/FaceLivenessDetector/service/machine/machine.ts @@ -1320,6 +1320,7 @@ export const livenessMachine = createMachine( videoEl, selectableDevices, selectedDeviceId, + videoMediaStream, } = context.videoAssociatedParams!; const { initialFace, ovalDetails } = context.ovalAssociatedParams!; const { startFace, endFace } = context.faceMatchAssociatedParams!; @@ -1356,6 +1357,7 @@ export const livenessMachine = createMachine( device: { camera: userCamera, screen: window.screen, + capabilities: videoMediaStream!.getTracks()[0]?.getCapabilities(), }, media: { calculatedStartTimestamp: recordingStartedTimestamp,