idmission-web-sdk 1.0.253 → 1.0.255

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.
@@ -50,7 +50,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
50
50
  var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
51
51
  var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
52
52
 
53
- var webSdkVersion = '1.0.253';
53
+ var webSdkVersion = '1.0.255';
54
54
 
55
55
  function getPlatform() {
56
56
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -14340,6 +14340,7 @@ var IdVideoCapture = function IdVideoCapture(_a) {
14340
14340
  cameraRef = _12.cameraRef,
14341
14341
  videoRef = _12.videoRef,
14342
14342
  videoLoaded = _12.videoLoaded,
14343
+ setVideoLoaded = _12.setVideoLoaded,
14343
14344
  cameraReady = _12.cameraReady;
14344
14345
  var _13 = React.useState([]),
14345
14346
  detectedObjects = _13[0],
@@ -14364,8 +14365,11 @@ var IdVideoCapture = function IdVideoCapture(_a) {
14364
14365
  videoUrl = _16.videoUrl;
14365
14366
  React.useEffect(function () {
14366
14367
  if (!isRecording && !videoUrl) startRecording();
14367
- if (videoUrl) onComplete === null || onComplete === void 0 ? void 0 : onComplete(videoUrl);
14368
- }, [isRecording, onComplete, startRecording, videoUrl]);
14368
+ if (videoUrl) {
14369
+ setVideoLoaded(false);
14370
+ onComplete === null || onComplete === void 0 ? void 0 : onComplete(videoUrl);
14371
+ }
14372
+ }, [isRecording, onComplete, setVideoLoaded, startRecording, videoUrl]);
14369
14373
  var animationFrame = React.useRef(0);
14370
14374
  var shouldCaptureFrames = React.useRef(false);
14371
14375
  React.useEffect(function () {