idmission-web-sdk 1.0.254 → 1.0.256

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.
@@ -51,7 +51,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
51
51
  var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
52
52
  var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
53
53
 
54
- var webSdkVersion = '1.0.254';
54
+ var webSdkVersion = '1.0.256';
55
55
 
56
56
  function getPlatform() {
57
57
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -14447,6 +14447,7 @@ var IdVideoCapture = function IdVideoCapture(_a) {
14447
14447
  cameraRef = _12.cameraRef,
14448
14448
  videoRef = _12.videoRef,
14449
14449
  videoLoaded = _12.videoLoaded,
14450
+ setVideoLoaded = _12.setVideoLoaded,
14450
14451
  cameraReady = _12.cameraReady;
14451
14452
  var _13 = React.useState([]),
14452
14453
  detectedObjects = _13[0],
@@ -14471,8 +14472,11 @@ var IdVideoCapture = function IdVideoCapture(_a) {
14471
14472
  videoUrl = _16.videoUrl;
14472
14473
  React.useEffect(function () {
14473
14474
  if (!isRecording && !videoUrl) startRecording();
14474
- if (videoUrl) onComplete === null || onComplete === void 0 ? void 0 : onComplete(videoUrl);
14475
- }, [isRecording, onComplete, startRecording, videoUrl]);
14475
+ if (videoUrl) {
14476
+ setVideoLoaded(false);
14477
+ onComplete === null || onComplete === void 0 ? void 0 : onComplete(videoUrl);
14478
+ }
14479
+ }, [isRecording, onComplete, setVideoLoaded, startRecording, videoUrl]);
14476
14480
  var animationFrame = React.useRef(0);
14477
14481
  var shouldCaptureFrames = React.useRef(false);
14478
14482
  React.useEffect(function () {