@ekyc_qoobiss/qbs-ect-cmp 3.6.13 → 3.6.14

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.
@@ -5239,11 +5239,10 @@ class Stream {
5239
5239
  this.recordedChunks.push(event.data);
5240
5240
  };
5241
5241
  this.mediaRecorder.onstop = _e => {
5242
- var resp = {
5243
- RecordingChunks: this.recordedChunks,
5244
- MimeType: options.mimeType,
5245
- };
5246
- this.callbackRecordingReady(resp);
5242
+ var rec = new Blob(this.recordedChunks, {
5243
+ type: options.mimeType.split(';')[0],
5244
+ });
5245
+ this.callbackRecordingReady(rec);
5247
5246
  };
5248
5247
  this.mediaRecorder.start(); // Start recording, and dump data every second
5249
5248
  }
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-79f82518.js');
6
- const Stream = require('./Stream-3b222f7c.js');
6
+ const Stream = require('./Stream-097bd1e9.js');
7
7
 
8
8
  const agreementCheckCss = "";
9
9
 
@@ -896,7 +896,7 @@ function v4(options, buf, offset) {
896
896
  }
897
897
 
898
898
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
899
- const version$1 = "3.6.13";
899
+ const version$1 = "3.6.14";
900
900
  const description = "Person Identification Component";
901
901
  const main = "./dist/index.cjs.js";
902
902
  const module$1 = "./dist/index.js";
@@ -4304,6 +4304,10 @@ var CaptureUploadTypes;
4304
4304
  CaptureUploadTypes["IdFront"] = "IdFront";
4305
4305
  CaptureUploadTypes["IdBack"] = "IdBack";
4306
4306
  CaptureUploadTypes["IdFrontVideo"] = "IdFrontVideo";
4307
+ CaptureUploadTypes["IdBackVideo"] = "IdBackVideo";
4308
+ CaptureUploadTypes["SelfieVideo"] = "SelfieVideo";
4309
+ CaptureUploadTypes["SelfieGestureVideo"] = "SelfieGestureVideo";
4310
+ CaptureUploadTypes["TiltVideo"] = "TiltVideo";
4307
4311
  CaptureUploadTypes["None"] = "None";
4308
4312
  })(CaptureUploadTypes || (CaptureUploadTypes = {}));
4309
4313
  var CaptureFlowStatus;
@@ -4337,23 +4341,21 @@ const ProcessId = class {
4337
4341
  photoDone: false,
4338
4342
  recordingDone: false,
4339
4343
  fileName: 'idImage.png',
4340
- file: null,
4341
- recoding: null,
4342
- uploadType: CaptureUploadTypes.IdFront,
4344
+ recName: 'idVideo.',
4345
+ photoType: CaptureUploadTypes.IdFront,
4346
+ recType: CaptureUploadTypes.IdFrontVideo,
4343
4347
  },
4344
4348
  back: null,
4345
4349
  tilt: null,
4346
- recordingData: [],
4347
- mimeType: '',
4348
4350
  };
4349
4351
  if (Stream.state.hasIdBack) {
4350
4352
  this.flow.back = {
4351
4353
  photoDone: false,
4352
4354
  recordingDone: false,
4353
4355
  fileName: 'idBackImage.png',
4354
- file: null,
4355
- recoding: null,
4356
- uploadType: CaptureUploadTypes.IdBack,
4356
+ recName: 'idBackVideo.',
4357
+ photoType: CaptureUploadTypes.IdBack,
4358
+ recType: CaptureUploadTypes.IdBackVideo,
4357
4359
  };
4358
4360
  }
4359
4361
  if (Stream.state.hasIdTilt) {
@@ -4361,9 +4363,9 @@ const ProcessId = class {
4361
4363
  photoDone: true,
4362
4364
  recordingDone: false,
4363
4365
  fileName: 'idTiltImage.png',
4364
- file: null,
4365
- recoding: null,
4366
- uploadType: CaptureUploadTypes.None,
4366
+ recName: 'idTiltVideo.',
4367
+ photoType: CaptureUploadTypes.None,
4368
+ recType: CaptureUploadTypes.TiltVideo,
4367
4369
  };
4368
4370
  }
4369
4371
  this.captureStep = CaptureFlowStatus.HowToFront;
@@ -4395,8 +4397,8 @@ const ProcessId = class {
4395
4397
  return;
4396
4398
  }
4397
4399
  try {
4398
- this.flow.front.file = new File([idPhoto], this.flow.front.fileName, { type: 'image/png' });
4399
- this.flow.front.photoDone = await this.uploadPhotos(this.flow.front.uploadType, this.flow.front.file);
4400
+ let frontCapture = new File([idPhoto], this.flow.front.fileName, { type: 'image/png' });
4401
+ this.flow.front.photoDone = await this.uploadPhotos(this.flow.front.photoType, frontCapture);
4400
4402
  await this.endFlow();
4401
4403
  }
4402
4404
  catch (e) {
@@ -4411,8 +4413,8 @@ const ProcessId = class {
4411
4413
  return;
4412
4414
  }
4413
4415
  try {
4414
- this.flow.back.file = new File([idPhoto], this.flow.back.fileName, { type: 'image/png' });
4415
- this.flow.back.photoDone = await this.uploadPhotos(this.flow.back.uploadType, this.flow.back.file);
4416
+ let backCapture = new File([idPhoto], this.flow.back.fileName, { type: 'image/png' });
4417
+ this.flow.back.photoDone = await this.uploadPhotos(this.flow.back.photoType, backCapture);
4416
4418
  await this.endFlow();
4417
4419
  }
4418
4420
  catch (e) {
@@ -4420,56 +4422,32 @@ const ProcessId = class {
4420
4422
  }
4421
4423
  }
4422
4424
  async capturedIdRecording(event) {
4423
- var recResults = event.detail;
4424
- if (recResults.RecordingChunks.length == 0 && this.recordingResultCount == 0) {
4425
+ let idRecording = event.detail;
4426
+ if (idRecording.size == 0 && this.recordingResultCount == 0) {
4425
4427
  this.recordingResultCount++;
4426
4428
  return;
4427
4429
  }
4428
- if (recResults.RecordingChunks.length == 0) {
4429
- await this.baseComponent.apiCall.AddLog({ message: 'Empty recording for ' + this.captureStep, blobData: recResults.RecordingChunks }, Stream.getLogMessage());
4430
- this.triggerErrorFlow();
4430
+ if (idRecording.size == 0) {
4431
+ await this.baseComponent.apiCall.AddLog({ message: 'Empty ID recording', blobData: idRecording }, Stream.getLogMessage());
4432
+ this.showTimeout = true;
4431
4433
  return;
4432
4434
  }
4433
- this.flow.mimeType = event.detail.MimeType;
4435
+ let mimeType = idRecording.type == Stream.Stream.mp4MimeType.type ? Stream.Stream.mp4MimeType : Stream.Stream.webmMimeType;
4434
4436
  if (this.captureStep == CaptureFlowStatus.IdFront) {
4435
- this.flow.front.recoding = recResults.RecordingChunks;
4436
- this.flow.front.recordingDone = true;
4437
+ let frontRec = new File([idRecording], this.flow.front.recName + mimeType.extension, { type: mimeType.type });
4438
+ this.flow.front.recordingDone = await this.uploadRecording(this.flow.front.recType, frontRec);
4437
4439
  }
4438
4440
  if (this.captureStep == CaptureFlowStatus.IdBack) {
4439
- this.flow.back.recoding = recResults.RecordingChunks;
4440
- this.flow.back.recordingDone = true;
4441
+ let backRec = new File([idRecording], this.flow.back.recName + mimeType.extension, { type: mimeType.type });
4442
+ this.flow.back.recordingDone = await this.uploadRecording(this.flow.back.recType, backRec);
4441
4443
  }
4442
4444
  if (this.captureStep == CaptureFlowStatus.Tilt) {
4443
- this.flow.tilt.recoding = recResults.RecordingChunks;
4444
- this.flow.tilt.recordingDone = true;
4445
+ let tiltRec = new File([idRecording], this.flow.tilt.recName + mimeType.extension, { type: mimeType.type });
4446
+ this.flow.tilt.recordingDone = await this.uploadRecording(this.flow.tilt.recType, tiltRec);
4445
4447
  }
4446
4448
  await this.endFlow();
4447
4449
  this.recordingResultCount = 0;
4448
4450
  }
4449
- async getRecordingFile() {
4450
- let idRecording = new Blob(this.flow.recordingData, {
4451
- type: this.flow.mimeType,
4452
- });
4453
- if (idRecording.size == 0) {
4454
- await this.baseComponent.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording }, Stream.getLogMessage());
4455
- this.triggerErrorFlow(true);
4456
- return;
4457
- }
4458
- let mimeType = idRecording.type == Stream.Stream.mp4MimeType.type ? Stream.Stream.mp4MimeType : Stream.Stream.webmMimeType;
4459
- try {
4460
- var file = new File([idRecording], 'idVideo.' + mimeType.extension, { type: mimeType.type });
4461
- var uploadResult = this.uploadRecording('IdFrontVideo', file);
4462
- if (uploadResult) {
4463
- return true;
4464
- }
4465
- else {
4466
- this.triggerErrorFlow(true);
4467
- }
4468
- }
4469
- catch (e) {
4470
- this.triggerErrorFlow(true);
4471
- }
4472
- }
4473
4451
  async componentDidLoad() {
4474
4452
  await this.baseComponent.initialize();
4475
4453
  }
@@ -4503,31 +4481,24 @@ const ProcessId = class {
4503
4481
  triggerErrorFlow(restart = false) {
4504
4482
  if (restart) {
4505
4483
  this.captureStep = CaptureFlowStatus.IdFront;
4506
- this.flow.recordingData = [];
4507
4484
  }
4508
4485
  if (this.captureStep == CaptureFlowStatus.IdFront || restart) {
4509
- this.flow.front.file = null;
4510
4486
  this.flow.front.photoDone = false;
4511
4487
  this.flow.front.recordingDone = false;
4512
- this.flow.front.recoding = null;
4513
4488
  }
4514
4489
  if (this.captureStep == CaptureFlowStatus.IdBack || restart) {
4515
- this.flow.back.file = null;
4516
4490
  this.flow.back.photoDone = false;
4517
4491
  this.flow.back.recordingDone = false;
4518
- this.flow.back.recoding = null;
4519
4492
  }
4520
4493
  if (this.captureStep == CaptureFlowStatus.Tilt || restart) {
4521
4494
  this.flow.tilt.photoDone = true;
4522
4495
  this.flow.tilt.recordingDone = false;
4523
- this.flow.tilt.recoding = null;
4524
4496
  }
4525
4497
  this.showInvalid = true;
4526
4498
  }
4527
4499
  async endFlow() {
4528
4500
  if (this.captureStep == CaptureFlowStatus.IdFront) {
4529
4501
  if (this.flow.front.photoDone && this.flow.front.recordingDone) {
4530
- this.flow.recordingData.push(...this.flow.front.recoding);
4531
4502
  if (Stream.state.hasIdBack) {
4532
4503
  this.captureStep = CaptureFlowStatus.IdBack;
4533
4504
  }
@@ -4544,7 +4515,6 @@ const ProcessId = class {
4544
4515
  }
4545
4516
  if (this.captureStep == CaptureFlowStatus.IdBack && Stream.state.hasIdBack) {
4546
4517
  if (this.flow.back.photoDone && this.flow.back.recordingDone) {
4547
- this.flow.recordingData.push(...this.flow.back.recoding);
4548
4518
  if (Stream.state.hasIdTilt) {
4549
4519
  this.captureStep = CaptureFlowStatus.Tilt;
4550
4520
  }
@@ -4558,16 +4528,12 @@ const ProcessId = class {
4558
4528
  }
4559
4529
  if (this.captureStep == CaptureFlowStatus.Tilt && Stream.state.hasIdTilt) {
4560
4530
  if (this.flow.tilt.photoDone && this.flow.tilt.recordingDone) {
4561
- this.flow.recordingData.push(...this.flow.tilt.recoding);
4531
+ this.captureStep = CaptureFlowStatus.End;
4562
4532
  }
4563
4533
  else {
4564
4534
  return;
4565
4535
  }
4566
4536
  }
4567
- var recDone = await this.getRecordingFile();
4568
- if (recDone) {
4569
- this.captureStep = CaptureFlowStatus.End;
4570
- }
4571
4537
  if (this.captureStep != CaptureFlowStatus.End) {
4572
4538
  return;
4573
4539
  }
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-79f82518.js');
6
- const Stream = require('./Stream-3b222f7c.js');
6
+ const Stream = require('./Stream-097bd1e9.js');
7
7
 
8
8
  const idDoubleSideCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-79f82518.js');
6
- const Stream = require('./Stream-3b222f7c.js');
6
+ const Stream = require('./Stream-097bd1e9.js');
7
7
 
8
8
  const idSingleSideCss = "";
9
9
 
@@ -24,23 +24,21 @@ export class ProcessId {
24
24
  photoDone: false,
25
25
  recordingDone: false,
26
26
  fileName: 'idImage.png',
27
- file: null,
28
- recoding: null,
29
- uploadType: CaptureUploadTypes.IdFront,
27
+ recName: 'idVideo.',
28
+ photoType: CaptureUploadTypes.IdFront,
29
+ recType: CaptureUploadTypes.IdFrontVideo,
30
30
  },
31
31
  back: null,
32
32
  tilt: null,
33
- recordingData: [],
34
- mimeType: '',
35
33
  };
36
34
  if (store.hasIdBack) {
37
35
  this.flow.back = {
38
36
  photoDone: false,
39
37
  recordingDone: false,
40
38
  fileName: 'idBackImage.png',
41
- file: null,
42
- recoding: null,
43
- uploadType: CaptureUploadTypes.IdBack,
39
+ recName: 'idBackVideo.',
40
+ photoType: CaptureUploadTypes.IdBack,
41
+ recType: CaptureUploadTypes.IdBackVideo,
44
42
  };
45
43
  }
46
44
  if (store.hasIdTilt) {
@@ -48,9 +46,9 @@ export class ProcessId {
48
46
  photoDone: true,
49
47
  recordingDone: false,
50
48
  fileName: 'idTiltImage.png',
51
- file: null,
52
- recoding: null,
53
- uploadType: CaptureUploadTypes.None,
49
+ recName: 'idTiltVideo.',
50
+ photoType: CaptureUploadTypes.None,
51
+ recType: CaptureUploadTypes.TiltVideo,
54
52
  };
55
53
  }
56
54
  this.captureStep = CaptureFlowStatus.HowToFront;
@@ -82,8 +80,8 @@ export class ProcessId {
82
80
  return;
83
81
  }
84
82
  try {
85
- this.flow.front.file = new File([idPhoto], this.flow.front.fileName, { type: 'image/png' });
86
- this.flow.front.photoDone = await this.uploadPhotos(this.flow.front.uploadType, this.flow.front.file);
83
+ let frontCapture = new File([idPhoto], this.flow.front.fileName, { type: 'image/png' });
84
+ this.flow.front.photoDone = await this.uploadPhotos(this.flow.front.photoType, frontCapture);
87
85
  await this.endFlow();
88
86
  }
89
87
  catch (e) {
@@ -98,8 +96,8 @@ export class ProcessId {
98
96
  return;
99
97
  }
100
98
  try {
101
- this.flow.back.file = new File([idPhoto], this.flow.back.fileName, { type: 'image/png' });
102
- this.flow.back.photoDone = await this.uploadPhotos(this.flow.back.uploadType, this.flow.back.file);
99
+ let backCapture = new File([idPhoto], this.flow.back.fileName, { type: 'image/png' });
100
+ this.flow.back.photoDone = await this.uploadPhotos(this.flow.back.photoType, backCapture);
103
101
  await this.endFlow();
104
102
  }
105
103
  catch (e) {
@@ -107,56 +105,32 @@ export class ProcessId {
107
105
  }
108
106
  }
109
107
  async capturedIdRecording(event) {
110
- var recResults = event.detail;
111
- if (recResults.RecordingChunks.length == 0 && this.recordingResultCount == 0) {
108
+ let idRecording = event.detail;
109
+ if (idRecording.size == 0 && this.recordingResultCount == 0) {
112
110
  this.recordingResultCount++;
113
111
  return;
114
112
  }
115
- if (recResults.RecordingChunks.length == 0) {
116
- await this.baseComponent.apiCall.AddLog({ message: 'Empty recording for ' + this.captureStep, blobData: recResults.RecordingChunks }, getLogMessage());
117
- this.triggerErrorFlow();
113
+ if (idRecording.size == 0) {
114
+ await this.baseComponent.apiCall.AddLog({ message: 'Empty ID recording', blobData: idRecording }, getLogMessage());
115
+ this.showTimeout = true;
118
116
  return;
119
117
  }
120
- this.flow.mimeType = event.detail.MimeType;
118
+ let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
121
119
  if (this.captureStep == CaptureFlowStatus.IdFront) {
122
- this.flow.front.recoding = recResults.RecordingChunks;
123
- this.flow.front.recordingDone = true;
120
+ let frontRec = new File([idRecording], this.flow.front.recName + mimeType.extension, { type: mimeType.type });
121
+ this.flow.front.recordingDone = await this.uploadRecording(this.flow.front.recType, frontRec);
124
122
  }
125
123
  if (this.captureStep == CaptureFlowStatus.IdBack) {
126
- this.flow.back.recoding = recResults.RecordingChunks;
127
- this.flow.back.recordingDone = true;
124
+ let backRec = new File([idRecording], this.flow.back.recName + mimeType.extension, { type: mimeType.type });
125
+ this.flow.back.recordingDone = await this.uploadRecording(this.flow.back.recType, backRec);
128
126
  }
129
127
  if (this.captureStep == CaptureFlowStatus.Tilt) {
130
- this.flow.tilt.recoding = recResults.RecordingChunks;
131
- this.flow.tilt.recordingDone = true;
128
+ let tiltRec = new File([idRecording], this.flow.tilt.recName + mimeType.extension, { type: mimeType.type });
129
+ this.flow.tilt.recordingDone = await this.uploadRecording(this.flow.tilt.recType, tiltRec);
132
130
  }
133
131
  await this.endFlow();
134
132
  this.recordingResultCount = 0;
135
133
  }
136
- async getRecordingFile() {
137
- let idRecording = new Blob(this.flow.recordingData, {
138
- type: this.flow.mimeType,
139
- });
140
- if (idRecording.size == 0) {
141
- await this.baseComponent.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording }, getLogMessage());
142
- this.triggerErrorFlow(true);
143
- return;
144
- }
145
- let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
146
- try {
147
- var file = new File([idRecording], 'idVideo.' + mimeType.extension, { type: mimeType.type });
148
- var uploadResult = this.uploadRecording('IdFrontVideo', file);
149
- if (uploadResult) {
150
- return true;
151
- }
152
- else {
153
- this.triggerErrorFlow(true);
154
- }
155
- }
156
- catch (e) {
157
- this.triggerErrorFlow(true);
158
- }
159
- }
160
134
  async componentDidLoad() {
161
135
  await this.baseComponent.initialize();
162
136
  }
@@ -190,31 +164,24 @@ export class ProcessId {
190
164
  triggerErrorFlow(restart = false) {
191
165
  if (restart) {
192
166
  this.captureStep = CaptureFlowStatus.IdFront;
193
- this.flow.recordingData = [];
194
167
  }
195
168
  if (this.captureStep == CaptureFlowStatus.IdFront || restart) {
196
- this.flow.front.file = null;
197
169
  this.flow.front.photoDone = false;
198
170
  this.flow.front.recordingDone = false;
199
- this.flow.front.recoding = null;
200
171
  }
201
172
  if (this.captureStep == CaptureFlowStatus.IdBack || restart) {
202
- this.flow.back.file = null;
203
173
  this.flow.back.photoDone = false;
204
174
  this.flow.back.recordingDone = false;
205
- this.flow.back.recoding = null;
206
175
  }
207
176
  if (this.captureStep == CaptureFlowStatus.Tilt || restart) {
208
177
  this.flow.tilt.photoDone = true;
209
178
  this.flow.tilt.recordingDone = false;
210
- this.flow.tilt.recoding = null;
211
179
  }
212
180
  this.showInvalid = true;
213
181
  }
214
182
  async endFlow() {
215
183
  if (this.captureStep == CaptureFlowStatus.IdFront) {
216
184
  if (this.flow.front.photoDone && this.flow.front.recordingDone) {
217
- this.flow.recordingData.push(...this.flow.front.recoding);
218
185
  if (store.hasIdBack) {
219
186
  this.captureStep = CaptureFlowStatus.IdBack;
220
187
  }
@@ -231,7 +198,6 @@ export class ProcessId {
231
198
  }
232
199
  if (this.captureStep == CaptureFlowStatus.IdBack && store.hasIdBack) {
233
200
  if (this.flow.back.photoDone && this.flow.back.recordingDone) {
234
- this.flow.recordingData.push(...this.flow.back.recoding);
235
201
  if (store.hasIdTilt) {
236
202
  this.captureStep = CaptureFlowStatus.Tilt;
237
203
  }
@@ -245,16 +211,12 @@ export class ProcessId {
245
211
  }
246
212
  if (this.captureStep == CaptureFlowStatus.Tilt && store.hasIdTilt) {
247
213
  if (this.flow.tilt.photoDone && this.flow.tilt.recordingDone) {
248
- this.flow.recordingData.push(...this.flow.tilt.recoding);
214
+ this.captureStep = CaptureFlowStatus.End;
249
215
  }
250
216
  else {
251
217
  return;
252
218
  }
253
219
  }
254
- var recDone = await this.getRecordingFile();
255
- if (recDone) {
256
- this.captureStep = CaptureFlowStatus.End;
257
- }
258
220
  if (this.captureStep != CaptureFlowStatus.End) {
259
221
  return;
260
222
  }
@@ -135,11 +135,10 @@ export class Stream {
135
135
  this.recordedChunks.push(event.data);
136
136
  };
137
137
  this.mediaRecorder.onstop = _e => {
138
- var resp = {
139
- RecordingChunks: this.recordedChunks,
140
- MimeType: options.mimeType,
141
- };
142
- this.callbackRecordingReady(resp);
138
+ var rec = new Blob(this.recordedChunks, {
139
+ type: options.mimeType.split(';')[0],
140
+ });
141
+ this.callbackRecordingReady(rec);
143
142
  };
144
143
  this.mediaRecorder.start(); // Start recording, and dump data every second
145
144
  }
@@ -3,6 +3,10 @@ export var CaptureUploadTypes;
3
3
  CaptureUploadTypes["IdFront"] = "IdFront";
4
4
  CaptureUploadTypes["IdBack"] = "IdBack";
5
5
  CaptureUploadTypes["IdFrontVideo"] = "IdFrontVideo";
6
+ CaptureUploadTypes["IdBackVideo"] = "IdBackVideo";
7
+ CaptureUploadTypes["SelfieVideo"] = "SelfieVideo";
8
+ CaptureUploadTypes["SelfieGestureVideo"] = "SelfieGestureVideo";
9
+ CaptureUploadTypes["TiltVideo"] = "TiltVideo";
6
10
  CaptureUploadTypes["None"] = "None";
7
11
  })(CaptureUploadTypes || (CaptureUploadTypes = {}));
8
12
  export var CaptureFlowStatus;
@@ -5237,11 +5237,10 @@ class Stream {
5237
5237
  this.recordedChunks.push(event.data);
5238
5238
  };
5239
5239
  this.mediaRecorder.onstop = _e => {
5240
- var resp = {
5241
- RecordingChunks: this.recordedChunks,
5242
- MimeType: options.mimeType,
5243
- };
5244
- this.callbackRecordingReady(resp);
5240
+ var rec = new Blob(this.recordedChunks, {
5241
+ type: options.mimeType.split(';')[0],
5242
+ });
5243
+ this.callbackRecordingReady(rec);
5245
5244
  };
5246
5245
  this.mediaRecorder.start(); // Start recording, and dump data every second
5247
5246
  }