Skip to content

Commit

Permalink
Add stream track capabilities to metadata (#6189)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayush987goyal authored Nov 21, 2024
1 parent 3984dd3 commit 1dbeaf9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1320,6 +1320,7 @@ export const livenessMachine = createMachine<LivenessContext, LivenessEvent>(
videoEl,
selectableDevices,
selectedDeviceId,
videoMediaStream,
} = context.videoAssociatedParams!;
const { initialFace, ovalDetails } = context.ovalAssociatedParams!;
const { startFace, endFace } = context.faceMatchAssociatedParams!;
Expand Down Expand Up @@ -1356,6 +1357,7 @@ export const livenessMachine = createMachine<LivenessContext, LivenessEvent>(
device: {
camera: userCamera,
screen: window.screen,
capabilities: videoMediaStream!.getTracks()[0]?.getCapabilities(),
},
media: {
calculatedStartTimestamp: recordingStartedTimestamp,
Expand Down

0 comments on commit 1dbeaf9

Please sign in to comment.