@ekyc_qoobiss/qbs-ect-cmp 3.6.48 → 3.6.49

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.
@@ -4616,7 +4616,8 @@ const Camera = class {
4616
4616
  return (index.h("div", { class: "camera" }, index.h("video", { id: "video", loop: true, autoplay: true, playsinline: true, muted: true, class: cameraVideoClass, ref: el => (this.cameraVideo = el) }), index.h("canvas", { id: "output", class: cameraCanvasClass, ref: el => (this.cameraCanvas = el) })));
4617
4617
  }
4618
4618
  startStream() {
4619
- const stream = Stream.instance;
4619
+ let verificationMode = [TranslationUtils.FlowStatus.IDTILT, TranslationUtils.FlowStatus.LIVENESSGESTURE].includes(TranslationUtils.state.flowStatus) ? VerificationMode.Tilt : VerificationMode.Full;
4620
+ const stream = Stream.getNewInstance(verificationMode);
4620
4621
  stream.updateHtmlElements(this.cameraVideo, this.cameraCanvas, this.component);
4621
4622
  if (this.captureMode == 'selfie') {
4622
4623
  stream.setFaceDetection(true);
@@ -4996,8 +4997,8 @@ const IdCapture = class {
4996
4997
  }
4997
4998
  }
4998
4999
  async componentDidLoad() {
4999
- await BaseComponent.logStep(this.flowStep, TranslationUtils.FlowMoments.Initialized);
5000
5000
  this.initVariables();
5001
+ await BaseComponent.logStep(this.flowStep, TranslationUtils.FlowMoments.Initialized);
5001
5002
  if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.IDBACK) {
5002
5003
  this.demoVideo.src = TranslationUtils.IdCaptureValues.IDPoseDemoMapping[IDPose.Rotate];
5003
5004
  this.demoVideo.play();
@@ -5148,7 +5149,7 @@ function v4(options, buf, offset) {
5148
5149
  }
5149
5150
 
5150
5151
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
5151
- const version$1 = "3.6.48";
5152
+ const version$1 = "3.6.49";
5152
5153
  const description = "Person Identification Component";
5153
5154
  const main = "./dist/index.cjs.js";
5154
5155
  const module$1 = "./dist/index.js";
@@ -62,8 +62,8 @@ export class IdCapture {
62
62
  }
63
63
  }
64
64
  async componentDidLoad() {
65
- await BaseComponent.logStep(this.flowStep, FlowMoments.Initialized);
66
65
  this.initVariables();
66
+ await BaseComponent.logStep(this.flowStep, FlowMoments.Initialized);
67
67
  if (store.flowStatus == FlowStatus.IDBACK) {
68
68
  this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Rotate];
69
69
  this.demoVideo.play();
@@ -1,6 +1,8 @@
1
1
  import { Stream } from '../../../helpers/Stream';
2
2
  import { h } from '@stencil/core';
3
3
  import store from '../../../helpers/store';
4
+ import { FlowStatus } from '../../../models/FlowStatus';
5
+ import { VerificationMode } from '../../../models/IVerificationMode';
4
6
  // import { PipelineResult } from '../../../libs/FaceDetector/PipelineResult';
5
7
  export class Camera {
6
8
  constructor() {
@@ -46,7 +48,8 @@ export class Camera {
46
48
  return (h("div", { class: "camera" }, h("video", { id: "video", loop: true, autoplay: true, playsinline: true, muted: true, class: cameraVideoClass, ref: el => (this.cameraVideo = el) }), h("canvas", { id: "output", class: cameraCanvasClass, ref: el => (this.cameraCanvas = el) })));
47
49
  }
48
50
  startStream() {
49
- const stream = Stream.instance;
51
+ let verificationMode = [FlowStatus.IDTILT, FlowStatus.LIVENESSGESTURE].includes(store.flowStatus) ? VerificationMode.Tilt : VerificationMode.Full;
52
+ const stream = Stream.getNewInstance(verificationMode);
50
53
  stream.updateHtmlElements(this.cameraVideo, this.cameraCanvas, this.component);
51
54
  if (this.captureMode == 'selfie') {
52
55
  stream.setFaceDetection(true);
@@ -4612,7 +4612,8 @@ const Camera = class {
4612
4612
  return (h("div", { class: "camera" }, h("video", { id: "video", loop: true, autoplay: true, playsinline: true, muted: true, class: cameraVideoClass, ref: el => (this.cameraVideo = el) }), h("canvas", { id: "output", class: cameraCanvasClass, ref: el => (this.cameraCanvas = el) })));
4613
4613
  }
4614
4614
  startStream() {
4615
- const stream = Stream.instance;
4615
+ let verificationMode = [FlowStatus.IDTILT, FlowStatus.LIVENESSGESTURE].includes(state.flowStatus) ? VerificationMode.Tilt : VerificationMode.Full;
4616
+ const stream = Stream.getNewInstance(verificationMode);
4616
4617
  stream.updateHtmlElements(this.cameraVideo, this.cameraCanvas, this.component);
4617
4618
  if (this.captureMode == 'selfie') {
4618
4619
  stream.setFaceDetection(true);
@@ -4992,8 +4993,8 @@ const IdCapture = class {
4992
4993
  }
4993
4994
  }
4994
4995
  async componentDidLoad() {
4995
- await BaseComponent.logStep(this.flowStep, FlowMoments.Initialized);
4996
4996
  this.initVariables();
4997
+ await BaseComponent.logStep(this.flowStep, FlowMoments.Initialized);
4997
4998
  if (state.flowStatus == FlowStatus.IDBACK) {
4998
4999
  this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Rotate];
4999
5000
  this.demoVideo.play();
@@ -5144,7 +5145,7 @@ function v4(options, buf, offset) {
5144
5145
  }
5145
5146
 
5146
5147
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
5147
- const version$1 = "3.6.48";
5148
+ const version$1 = "3.6.49";
5148
5149
  const description = "Person Identification Component";
5149
5150
  const main = "./dist/index.cjs.js";
5150
5151
  const module = "./dist/index.js";