@hexar/biometric-identity-sdk-react-native 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -47,25 +47,25 @@ const getDefaultChallenges = (strings) => [
|
|
|
47
47
|
{
|
|
48
48
|
action: 'look_left',
|
|
49
49
|
instruction: strings.liveness.instructions.lookLeft || 'Slowly turn your head to the LEFT',
|
|
50
|
-
duration_ms:
|
|
50
|
+
duration_ms: 2000,
|
|
51
51
|
order: 1,
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
action: 'look_right',
|
|
55
55
|
instruction: strings.liveness.instructions.lookRight || 'Slowly turn your head to the RIGHT',
|
|
56
|
-
duration_ms:
|
|
56
|
+
duration_ms: 2000,
|
|
57
57
|
order: 2,
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
action: 'blink',
|
|
61
61
|
instruction: strings.liveness.instructions.blink || 'Blink your eyes naturally',
|
|
62
|
-
duration_ms:
|
|
62
|
+
duration_ms: 1800,
|
|
63
63
|
order: 3,
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
action: 'smile',
|
|
67
67
|
instruction: strings.liveness.instructions.smile || 'Smile',
|
|
68
|
-
duration_ms:
|
|
68
|
+
duration_ms: 1800,
|
|
69
69
|
order: 4,
|
|
70
70
|
},
|
|
71
71
|
];
|
|
@@ -419,7 +419,7 @@ const VideoRecorder = ({ theme, language, duration, instructions, challenges: pr
|
|
|
419
419
|
// Schedule next capture only after this one completes (serial chain).
|
|
420
420
|
// Small delay lets the camera hardware reset between captures.
|
|
421
421
|
if (isRecordingRef.current && framesRef.current.length < MAX_FRAMES) {
|
|
422
|
-
frameCaptureInterval.current = setTimeout(captureNextFrame,
|
|
422
|
+
frameCaptureInterval.current = setTimeout(captureNextFrame, 66);
|
|
423
423
|
}
|
|
424
424
|
};
|
|
425
425
|
captureNextFrame();
|
package/package.json
CHANGED
|
@@ -60,25 +60,25 @@ const getDefaultChallenges = (strings: any): ChallengeAction[] => [
|
|
|
60
60
|
{
|
|
61
61
|
action: 'look_left',
|
|
62
62
|
instruction: strings.liveness.instructions.lookLeft || 'Slowly turn your head to the LEFT',
|
|
63
|
-
duration_ms:
|
|
63
|
+
duration_ms: 2000,
|
|
64
64
|
order: 1,
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
action: 'look_right',
|
|
68
68
|
instruction: strings.liveness.instructions.lookRight || 'Slowly turn your head to the RIGHT',
|
|
69
|
-
duration_ms:
|
|
69
|
+
duration_ms: 2000,
|
|
70
70
|
order: 2,
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
action: 'blink',
|
|
74
74
|
instruction: strings.liveness.instructions.blink || 'Blink your eyes naturally',
|
|
75
|
-
duration_ms:
|
|
75
|
+
duration_ms: 1800,
|
|
76
76
|
order: 3,
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
action: 'smile',
|
|
80
80
|
instruction: strings.liveness.instructions.smile || 'Smile',
|
|
81
|
-
duration_ms:
|
|
81
|
+
duration_ms: 1800,
|
|
82
82
|
order: 4,
|
|
83
83
|
},
|
|
84
84
|
];
|
|
@@ -489,7 +489,7 @@ export const VideoRecorder: React.FC<VideoRecorderProps> = ({
|
|
|
489
489
|
// Schedule next capture only after this one completes (serial chain).
|
|
490
490
|
// Small delay lets the camera hardware reset between captures.
|
|
491
491
|
if (isRecordingRef.current && framesRef.current.length < MAX_FRAMES) {
|
|
492
|
-
frameCaptureInterval.current = setTimeout(captureNextFrame,
|
|
492
|
+
frameCaptureInterval.current = setTimeout(captureNextFrame, 66);
|
|
493
493
|
}
|
|
494
494
|
};
|
|
495
495
|
|