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,