@ekyc_qoobiss/qbs-ect-cmp 3.6.34 → 3.6.36

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.
@@ -5012,7 +5012,7 @@ class Cameras {
5012
5012
  const devices = await navigator.mediaDevices.enumerateDevices();
5013
5013
  const videoDevices = devices.filter(device => device.kind === 'videoinput');
5014
5014
  for (const device of videoDevices) {
5015
- const updatedConstraints = this.GetConstraints(device.deviceId, deviceInfo);
5015
+ const updatedConstraints = this.GetConstraints(device.deviceId, deviceInfo, false, false);
5016
5016
  const stream = await navigator.mediaDevices.getUserMedia(updatedConstraints);
5017
5017
  stream.getVideoTracks().forEach(track => {
5018
5018
  var _a, _b;
@@ -5070,9 +5070,9 @@ class Cameras {
5070
5070
  }
5071
5071
  return allDevices;
5072
5072
  }
5073
- GetConstraints(selectedDeviceId, device, portrait = false) {
5073
+ GetConstraints(selectedDeviceId, device, portrait = false, audio = true) {
5074
5074
  let constraints = {
5075
- audio: true,
5075
+ audio: audio,
5076
5076
  };
5077
5077
  let mediaTrack = {
5078
5078
  frameRate: 30,
@@ -5151,6 +5151,7 @@ const IdBackCapture = class {
5151
5151
  index.registerInstance(this, hostRef);
5152
5152
  this.eventPhotoCapture = index.createEvent(this, "photoIdBackCapture", 7);
5153
5153
  this.apiErrorEvent = index.createEvent(this, "apiError", 7);
5154
+ this.eventTimeElapsed = index.createEvent(this, "timeElapsed", 7);
5154
5155
  this.photoIsReady = photos => {
5155
5156
  //this.closeCamera();
5156
5157
  this.eventPhotoCapture.emit(photos);
@@ -5218,16 +5219,21 @@ const IdBackCapture = class {
5218
5219
  IDML5Detector.instance = null;
5219
5220
  FaceML5Detector.instance = null;
5220
5221
  }
5221
- verificationFinished() {
5222
+ async verificationFinished() {
5222
5223
  if (this.verified)
5223
5224
  return;
5224
5225
  this.verified = true;
5225
5226
  this.titleMesage = this.translations.IdCaptureValues.Loading;
5226
5227
  this.closeCamera();
5227
5228
  this.showDemo = true;
5229
+ var loops = 0;
5228
5230
  this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
5229
- this.demoVideo.loop = true;
5230
- this.demoVideo.play();
5231
+ this.demoVideo.loop = false;
5232
+ while (loops < 7) {
5233
+ this.demoVideo.play();
5234
+ await delay(this.translations.GlobalValues.VideoLenght);
5235
+ }
5236
+ this.eventTimeElapsed.emit();
5231
5237
  }
5232
5238
  async takePhoto() {
5233
5239
  if (this.captureTaken)
@@ -5261,6 +5267,7 @@ const IdCapture = class {
5261
5267
  index.registerInstance(this, hostRef);
5262
5268
  this.eventPhotoCapture = index.createEvent(this, "photoIdCapture", 7);
5263
5269
  this.apiErrorEvent = index.createEvent(this, "apiError", 7);
5270
+ this.eventTimeElapsed = index.createEvent(this, "timeElapsed", 7);
5264
5271
  this.photoIsReady = photos => {
5265
5272
  //this.closeCamera();
5266
5273
  this.eventPhotoCapture.emit(photos);
@@ -5339,9 +5346,14 @@ const IdCapture = class {
5339
5346
  this.titleMesage = this.translations.IdCaptureValues.Loading;
5340
5347
  this.closeCamera();
5341
5348
  this.showDemo = true;
5349
+ var loops = 0;
5342
5350
  this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
5343
- this.demoVideo.loop = true;
5344
- this.demoVideo.play();
5351
+ this.demoVideo.loop = false;
5352
+ while (loops < 7) {
5353
+ this.demoVideo.play();
5354
+ await delay(this.translations.GlobalValues.VideoLenght);
5355
+ }
5356
+ this.eventTimeElapsed.emit();
5345
5357
  }
5346
5358
  render() {
5347
5359
  let cameraStyle;
@@ -5372,6 +5384,7 @@ const IdTilt = class {
5372
5384
  index.registerInstance(this, hostRef);
5373
5385
  this.eventPhotoCapture = index.createEvent(this, "photoTiltCapture", 7);
5374
5386
  this.apiErrorEvent = index.createEvent(this, "apiError", 7);
5387
+ this.eventTimeElapsed = index.createEvent(this, "timeElapsed", 7);
5375
5388
  this.photoIsReady = photos => {
5376
5389
  //this.closeCamera();
5377
5390
  this.eventPhotoCapture.emit(photos);
@@ -5450,9 +5463,14 @@ const IdTilt = class {
5450
5463
  this.titleMesage = this.translations.IdCaptureValues.Loading;
5451
5464
  this.closeCamera();
5452
5465
  this.showDemo = true;
5466
+ var loops = 0;
5453
5467
  this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
5454
- this.demoVideo.loop = true;
5455
- this.demoVideo.play();
5468
+ this.demoVideo.loop = false;
5469
+ while (loops < 7) {
5470
+ this.demoVideo.play();
5471
+ await delay(this.translations.GlobalValues.VideoLenght);
5472
+ }
5473
+ this.eventTimeElapsed.emit();
5456
5474
  }
5457
5475
  render() {
5458
5476
  let cameraStyle;
@@ -5541,7 +5559,7 @@ function v4(options, buf, offset) {
5541
5559
  }
5542
5560
 
5543
5561
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
5544
- const version$1 = "3.6.34";
5562
+ const version$1 = "3.6.36";
5545
5563
  const description = "Person Identification Component";
5546
5564
  const main = "./dist/index.cjs.js";
5547
5565
  const module$1 = "./dist/index.js";
@@ -8940,6 +8958,9 @@ const ProcessId = class {
8940
8958
  }
8941
8959
  componentWillLoad() {
8942
8960
  this.captureRetryCount = 0;
8961
+ this.initFlow();
8962
+ }
8963
+ initFlow() {
8943
8964
  this.flow = {
8944
8965
  front: {
8945
8966
  photoDone: false,
@@ -9041,11 +9062,11 @@ const ProcessId = class {
9041
9062
  let frontRec = new File([idRecording], this.flow.front.recName + mimeType.extension, { type: mimeType.type });
9042
9063
  this.flow.front.recordingDone = await this.uploadRecording(this.flow.front.recType, frontRec);
9043
9064
  }
9044
- else if (this.captureStep == IdCaptureFlowStatus.IdBack) {
9065
+ else if (this.flow.back && this.captureStep == IdCaptureFlowStatus.IdBack) {
9045
9066
  let backRec = new File([idRecording], this.flow.back.recName + mimeType.extension, { type: mimeType.type });
9046
9067
  this.flow.back.recordingDone = await this.uploadRecording(this.flow.back.recType, backRec);
9047
9068
  }
9048
- else if (this.captureStep == IdCaptureFlowStatus.Tilt) {
9069
+ else if (this.flow.tilt && this.captureStep == IdCaptureFlowStatus.Tilt) {
9049
9070
  let tiltRec = new File([idRecording], this.flow.tilt.recName + mimeType.extension, { type: mimeType.type });
9050
9071
  this.flow.tilt.recordingDone = await this.uploadRecording(this.flow.tilt.recType, tiltRec);
9051
9072
  }
@@ -9090,17 +9111,19 @@ const ProcessId = class {
9090
9111
  restart = true;
9091
9112
  }
9092
9113
  if (restart) {
9093
- this.captureStep = IdCaptureFlowStatus.IdFront;
9114
+ this.initFlow();
9115
+ this.showInvalid = true;
9116
+ return;
9094
9117
  }
9095
- if (this.captureStep == IdCaptureFlowStatus.IdFront || restart) {
9118
+ if (this.captureStep == IdCaptureFlowStatus.IdFront) {
9096
9119
  this.flow.front.photoDone = false;
9097
9120
  this.flow.front.recordingDone = false;
9098
9121
  }
9099
- if (this.captureStep == IdCaptureFlowStatus.IdBack || restart) {
9122
+ if (this.flow.back && this.captureStep == IdCaptureFlowStatus.IdBack) {
9100
9123
  this.flow.back.photoDone = false;
9101
9124
  this.flow.back.recordingDone = false;
9102
9125
  }
9103
- if (this.captureStep == IdCaptureFlowStatus.Tilt || restart) {
9126
+ if (this.flow.tilt && this.captureStep == IdCaptureFlowStatus.Tilt) {
9104
9127
  this.flow.tilt.photoDone = true;
9105
9128
  this.flow.tilt.recordingDone = false;
9106
9129
  }
@@ -9123,7 +9146,7 @@ const ProcessId = class {
9123
9146
  return;
9124
9147
  }
9125
9148
  }
9126
- if (this.captureStep == IdCaptureFlowStatus.IdBack && TranslationUtils.state.hasIdBack) {
9149
+ if (this.flow.back && this.captureStep == IdCaptureFlowStatus.IdBack && TranslationUtils.state.hasIdBack) {
9127
9150
  if (this.flow.back.photoDone && this.flow.back.recordingDone) {
9128
9151
  if (TranslationUtils.state.hasIdTilt) {
9129
9152
  this.captureStep = IdCaptureFlowStatus.Tilt;
@@ -9136,7 +9159,7 @@ const ProcessId = class {
9136
9159
  return;
9137
9160
  }
9138
9161
  }
9139
- if (this.captureStep == IdCaptureFlowStatus.Tilt && TranslationUtils.state.hasIdTilt) {
9162
+ if (this.flow.tilt && this.captureStep == IdCaptureFlowStatus.Tilt && TranslationUtils.state.hasIdTilt) {
9140
9163
  if (this.flow.tilt.photoDone && this.flow.tilt.recordingDone) {
9141
9164
  this.captureStep = IdCaptureFlowStatus.End;
9142
9165
  }
@@ -9199,6 +9222,7 @@ const SelfieCapture = class {
9199
9222
  index.registerInstance(this, hostRef);
9200
9223
  this.eventPhotoCapture = index.createEvent(this, "photoSelfieCapture", 7);
9201
9224
  this.apiErrorEvent = index.createEvent(this, "apiError", 7);
9225
+ this.eventTimeElapsed = index.createEvent(this, "timeElapsed", 7);
9202
9226
  this.photoIsReady = photos => {
9203
9227
  //this.closeCamera();
9204
9228
  this.eventPhotoCapture.emit(photos);
@@ -9275,16 +9299,21 @@ const SelfieCapture = class {
9275
9299
  this.photoIsReady(res);
9276
9300
  await this.baseComponent.logStep(TranslationUtils.FlowSteps.SelfieCapture, TranslationUtils.FlowMoments.Finalized);
9277
9301
  }
9278
- verificationFinished() {
9302
+ async verificationFinished() {
9279
9303
  if (this.verified)
9280
9304
  return;
9281
9305
  this.verified = true;
9282
9306
  this.titleMesage = this.translations.SelfieCaptureValues.Loading;
9283
9307
  this.closeCamera();
9284
9308
  this.demoEnded = false;
9309
+ var loops = 0;
9285
9310
  this.demoVideo.src = this.uploadingLink;
9286
- this.demoVideo.loop = true;
9287
- this.demoVideo.play();
9311
+ this.demoVideo.loop = false;
9312
+ while (loops < 7) {
9313
+ this.demoVideo.play();
9314
+ await delay(this.translations.GlobalValues.VideoLenght);
9315
+ }
9316
+ this.eventTimeElapsed.emit();
9288
9317
  }
9289
9318
  render() {
9290
9319
  let cameraStyle;
@@ -9315,6 +9344,7 @@ const SelfieTilt = class {
9315
9344
  index.registerInstance(this, hostRef);
9316
9345
  this.eventPhotoCapture = index.createEvent(this, "photoSelfieTiltCapture", 7);
9317
9346
  this.apiErrorEvent = index.createEvent(this, "apiError", 7);
9347
+ this.eventTimeElapsed = index.createEvent(this, "timeElapsed", 7);
9318
9348
  this.photoIsReady = photos => {
9319
9349
  //this.closeCamera();
9320
9350
  this.eventPhotoCapture.emit(photos);
@@ -9393,16 +9423,21 @@ const SelfieTilt = class {
9393
9423
  this.photoIsReady(res);
9394
9424
  await this.baseComponent.logStep(TranslationUtils.FlowSteps.SelfieCapture, TranslationUtils.FlowMoments.Finalized);
9395
9425
  }
9396
- verificationFinished() {
9426
+ async verificationFinished() {
9397
9427
  if (this.verified)
9398
9428
  return;
9399
9429
  this.verified = true;
9400
9430
  this.titleMesage = this.translations.SelfieCaptureValues.Loading;
9401
9431
  this.closeCamera();
9402
9432
  this.demoEnded = false;
9433
+ var loops = 0;
9403
9434
  this.demoVideo.src = this.uploadingLink;
9404
- this.demoVideo.loop = true;
9405
- this.demoVideo.play();
9435
+ this.demoVideo.loop = false;
9436
+ while (loops < 7) {
9437
+ this.demoVideo.play();
9438
+ await delay(this.translations.GlobalValues.VideoLenght);
9439
+ }
9440
+ this.eventTimeElapsed.emit();
9406
9441
  }
9407
9442
  render() {
9408
9443
  let cameraStyle;
@@ -82,16 +82,21 @@ export class IdBackCapture {
82
82
  IDML5Detector.instance = null;
83
83
  FaceML5Detector.instance = null;
84
84
  }
85
- verificationFinished() {
85
+ async verificationFinished() {
86
86
  if (this.verified)
87
87
  return;
88
88
  this.verified = true;
89
89
  this.titleMesage = this.translations.IdCaptureValues.Loading;
90
90
  this.closeCamera();
91
91
  this.showDemo = true;
92
+ var loops = 0;
92
93
  this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
93
- this.demoVideo.loop = true;
94
- this.demoVideo.play();
94
+ this.demoVideo.loop = false;
95
+ while (loops < 7) {
96
+ this.demoVideo.play();
97
+ await delay(this.translations.GlobalValues.VideoLenght);
98
+ }
99
+ this.eventTimeElapsed.emit();
95
100
  }
96
101
  async takePhoto() {
97
102
  if (this.captureTaken)
@@ -166,6 +171,21 @@ export class IdBackCapture {
166
171
  "resolved": "any",
167
172
  "references": {}
168
173
  }
174
+ }, {
175
+ "method": "eventTimeElapsed",
176
+ "name": "timeElapsed",
177
+ "bubbles": true,
178
+ "cancelable": true,
179
+ "composed": true,
180
+ "docs": {
181
+ "tags": [],
182
+ "text": ""
183
+ },
184
+ "complexType": {
185
+ "original": "any",
186
+ "resolved": "any",
187
+ "references": {}
188
+ }
169
189
  }];
170
190
  }
171
191
  static get elementRef() { return "component"; }
@@ -93,9 +93,14 @@ export class IdCapture {
93
93
  this.titleMesage = this.translations.IdCaptureValues.Loading;
94
94
  this.closeCamera();
95
95
  this.showDemo = true;
96
+ var loops = 0;
96
97
  this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
97
- this.demoVideo.loop = true;
98
- this.demoVideo.play();
98
+ this.demoVideo.loop = false;
99
+ while (loops < 7) {
100
+ this.demoVideo.play();
101
+ await delay(this.translations.GlobalValues.VideoLenght);
102
+ }
103
+ this.eventTimeElapsed.emit();
99
104
  }
100
105
  render() {
101
106
  let cameraStyle;
@@ -167,6 +172,21 @@ export class IdCapture {
167
172
  "resolved": "any",
168
173
  "references": {}
169
174
  }
175
+ }, {
176
+ "method": "eventTimeElapsed",
177
+ "name": "timeElapsed",
178
+ "bubbles": true,
179
+ "cancelable": true,
180
+ "composed": true,
181
+ "docs": {
182
+ "tags": [],
183
+ "text": ""
184
+ },
185
+ "complexType": {
186
+ "original": "any",
187
+ "resolved": "any",
188
+ "references": {}
189
+ }
170
190
  }];
171
191
  }
172
192
  static get elementRef() { return "component"; }
@@ -93,9 +93,14 @@ export class IdTilt {
93
93
  this.titleMesage = this.translations.IdCaptureValues.Loading;
94
94
  this.closeCamera();
95
95
  this.showDemo = true;
96
+ var loops = 0;
96
97
  this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
97
- this.demoVideo.loop = true;
98
- this.demoVideo.play();
98
+ this.demoVideo.loop = false;
99
+ while (loops < 7) {
100
+ this.demoVideo.play();
101
+ await delay(this.translations.GlobalValues.VideoLenght);
102
+ }
103
+ this.eventTimeElapsed.emit();
99
104
  }
100
105
  render() {
101
106
  let cameraStyle;
@@ -167,6 +172,21 @@ export class IdTilt {
167
172
  "resolved": "any",
168
173
  "references": {}
169
174
  }
175
+ }, {
176
+ "method": "eventTimeElapsed",
177
+ "name": "timeElapsed",
178
+ "bubbles": true,
179
+ "cancelable": true,
180
+ "composed": true,
181
+ "docs": {
182
+ "tags": [],
183
+ "text": ""
184
+ },
185
+ "complexType": {
186
+ "original": "any",
187
+ "resolved": "any",
188
+ "references": {}
189
+ }
170
190
  }];
171
191
  }
172
192
  static get elementRef() { return "component"; }
@@ -89,16 +89,21 @@ export class SelfieCapture {
89
89
  this.photoIsReady(res);
90
90
  await this.baseComponent.logStep(FlowSteps.SelfieCapture, FlowMoments.Finalized);
91
91
  }
92
- verificationFinished() {
92
+ async verificationFinished() {
93
93
  if (this.verified)
94
94
  return;
95
95
  this.verified = true;
96
96
  this.titleMesage = this.translations.SelfieCaptureValues.Loading;
97
97
  this.closeCamera();
98
98
  this.demoEnded = false;
99
+ var loops = 0;
99
100
  this.demoVideo.src = this.uploadingLink;
100
- this.demoVideo.loop = true;
101
- this.demoVideo.play();
101
+ this.demoVideo.loop = false;
102
+ while (loops < 7) {
103
+ this.demoVideo.play();
104
+ await delay(this.translations.GlobalValues.VideoLenght);
105
+ }
106
+ this.eventTimeElapsed.emit();
102
107
  }
103
108
  render() {
104
109
  let cameraStyle;
@@ -172,6 +177,21 @@ export class SelfieCapture {
172
177
  "resolved": "any",
173
178
  "references": {}
174
179
  }
180
+ }, {
181
+ "method": "eventTimeElapsed",
182
+ "name": "timeElapsed",
183
+ "bubbles": true,
184
+ "cancelable": true,
185
+ "composed": true,
186
+ "docs": {
187
+ "tags": [],
188
+ "text": ""
189
+ },
190
+ "complexType": {
191
+ "original": "any",
192
+ "resolved": "any",
193
+ "references": {}
194
+ }
175
195
  }];
176
196
  }
177
197
  static get elementRef() { return "component"; }
@@ -90,16 +90,21 @@ export class SelfieTilt {
90
90
  this.photoIsReady(res);
91
91
  await this.baseComponent.logStep(FlowSteps.SelfieCapture, FlowMoments.Finalized);
92
92
  }
93
- verificationFinished() {
93
+ async verificationFinished() {
94
94
  if (this.verified)
95
95
  return;
96
96
  this.verified = true;
97
97
  this.titleMesage = this.translations.SelfieCaptureValues.Loading;
98
98
  this.closeCamera();
99
99
  this.demoEnded = false;
100
+ var loops = 0;
100
101
  this.demoVideo.src = this.uploadingLink;
101
- this.demoVideo.loop = true;
102
- this.demoVideo.play();
102
+ this.demoVideo.loop = false;
103
+ while (loops < 7) {
104
+ this.demoVideo.play();
105
+ await delay(this.translations.GlobalValues.VideoLenght);
106
+ }
107
+ this.eventTimeElapsed.emit();
103
108
  }
104
109
  render() {
105
110
  let cameraStyle;
@@ -173,6 +178,21 @@ export class SelfieTilt {
173
178
  "resolved": "any",
174
179
  "references": {}
175
180
  }
181
+ }, {
182
+ "method": "eventTimeElapsed",
183
+ "name": "timeElapsed",
184
+ "bubbles": true,
185
+ "cancelable": true,
186
+ "composed": true,
187
+ "docs": {
188
+ "tags": [],
189
+ "text": ""
190
+ },
191
+ "complexType": {
192
+ "original": "any",
193
+ "resolved": "any",
194
+ "references": {}
195
+ }
176
196
  }];
177
197
  }
178
198
  static get elementRef() { return "component"; }
@@ -19,6 +19,9 @@ export class ProcessId {
19
19
  }
20
20
  componentWillLoad() {
21
21
  this.captureRetryCount = 0;
22
+ this.initFlow();
23
+ }
24
+ initFlow() {
22
25
  this.flow = {
23
26
  front: {
24
27
  photoDone: false,
@@ -120,11 +123,11 @@ export class ProcessId {
120
123
  let frontRec = new File([idRecording], this.flow.front.recName + mimeType.extension, { type: mimeType.type });
121
124
  this.flow.front.recordingDone = await this.uploadRecording(this.flow.front.recType, frontRec);
122
125
  }
123
- else if (this.captureStep == IdCaptureFlowStatus.IdBack) {
126
+ else if (this.flow.back && this.captureStep == IdCaptureFlowStatus.IdBack) {
124
127
  let backRec = new File([idRecording], this.flow.back.recName + mimeType.extension, { type: mimeType.type });
125
128
  this.flow.back.recordingDone = await this.uploadRecording(this.flow.back.recType, backRec);
126
129
  }
127
- else if (this.captureStep == IdCaptureFlowStatus.Tilt) {
130
+ else if (this.flow.tilt && this.captureStep == IdCaptureFlowStatus.Tilt) {
128
131
  let tiltRec = new File([idRecording], this.flow.tilt.recName + mimeType.extension, { type: mimeType.type });
129
132
  this.flow.tilt.recordingDone = await this.uploadRecording(this.flow.tilt.recType, tiltRec);
130
133
  }
@@ -169,17 +172,19 @@ export class ProcessId {
169
172
  restart = true;
170
173
  }
171
174
  if (restart) {
172
- this.captureStep = IdCaptureFlowStatus.IdFront;
175
+ this.initFlow();
176
+ this.showInvalid = true;
177
+ return;
173
178
  }
174
- if (this.captureStep == IdCaptureFlowStatus.IdFront || restart) {
179
+ if (this.captureStep == IdCaptureFlowStatus.IdFront) {
175
180
  this.flow.front.photoDone = false;
176
181
  this.flow.front.recordingDone = false;
177
182
  }
178
- if (this.captureStep == IdCaptureFlowStatus.IdBack || restart) {
183
+ if (this.flow.back && this.captureStep == IdCaptureFlowStatus.IdBack) {
179
184
  this.flow.back.photoDone = false;
180
185
  this.flow.back.recordingDone = false;
181
186
  }
182
- if (this.captureStep == IdCaptureFlowStatus.Tilt || restart) {
187
+ if (this.flow.tilt && this.captureStep == IdCaptureFlowStatus.Tilt) {
183
188
  this.flow.tilt.photoDone = true;
184
189
  this.flow.tilt.recordingDone = false;
185
190
  }
@@ -202,7 +207,7 @@ export class ProcessId {
202
207
  return;
203
208
  }
204
209
  }
205
- if (this.captureStep == IdCaptureFlowStatus.IdBack && store.hasIdBack) {
210
+ if (this.flow.back && this.captureStep == IdCaptureFlowStatus.IdBack && store.hasIdBack) {
206
211
  if (this.flow.back.photoDone && this.flow.back.recordingDone) {
207
212
  if (store.hasIdTilt) {
208
213
  this.captureStep = IdCaptureFlowStatus.Tilt;
@@ -215,7 +220,7 @@ export class ProcessId {
215
220
  return;
216
221
  }
217
222
  }
218
- if (this.captureStep == IdCaptureFlowStatus.Tilt && store.hasIdTilt) {
223
+ if (this.flow.tilt && this.captureStep == IdCaptureFlowStatus.Tilt && store.hasIdTilt) {
219
224
  if (this.flow.tilt.photoDone && this.flow.tilt.recordingDone) {
220
225
  this.captureStep = IdCaptureFlowStatus.End;
221
226
  }
@@ -6,7 +6,7 @@ export class Cameras {
6
6
  const devices = await navigator.mediaDevices.enumerateDevices();
7
7
  const videoDevices = devices.filter(device => device.kind === 'videoinput');
8
8
  for (const device of videoDevices) {
9
- const updatedConstraints = this.GetConstraints(device.deviceId, deviceInfo);
9
+ const updatedConstraints = this.GetConstraints(device.deviceId, deviceInfo, false, false);
10
10
  const stream = await navigator.mediaDevices.getUserMedia(updatedConstraints);
11
11
  stream.getVideoTracks().forEach(track => {
12
12
  var _a, _b;
@@ -64,9 +64,9 @@ export class Cameras {
64
64
  }
65
65
  return allDevices;
66
66
  }
67
- GetConstraints(selectedDeviceId, device, portrait = false) {
67
+ GetConstraints(selectedDeviceId, device, portrait = false, audio = true) {
68
68
  let constraints = {
69
- audio: true,
69
+ audio: audio,
70
70
  };
71
71
  let mediaTrack = {
72
72
  frameRate: 30,