idmission-web-sdk 2.2.106 → 2.2.107

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.
@@ -211,7 +211,7 @@
211
211
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
212
212
  };
213
213
 
214
- var webSdkVersion = '2.2.106';
214
+ var webSdkVersion = '2.2.107';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -22972,8 +22972,9 @@
22972
22972
  (function () {
22973
22973
  return __awaiter(_this, void 0, void 0, function () {
22974
22974
  var stream, tracks, audioTrack;
22975
- return __generator(this, function (_a) {
22976
- switch (_a.label) {
22975
+ var _a;
22976
+ return __generator(this, function (_b) {
22977
+ switch (_b.label) {
22977
22978
  case 0:
22978
22979
  if (!!outputCanvas.current) return [3 /*break*/, 2];
22979
22980
  return [4 /*yield*/, new Promise(function (resolve) {
@@ -22985,17 +22986,18 @@
22985
22986
  }, 10);
22986
22987
  })];
22987
22988
  case 1:
22988
- _a.sent();
22989
- _a.label = 2;
22989
+ _b.sent();
22990
+ _b.label = 2;
22990
22991
  case 2:
22991
22992
  startRecordingVideo();
22992
22993
  if (captureAudio) startRecordingAudio();
22993
22994
  stream = outputCanvas.current.captureStream(24 /* fps */);
22994
22995
  tracks = [stream.getVideoTracks()[0]];
22995
- audioTrack = audioStream.getAudioTracks()[0];
22996
+ audioTrack = (_a = audioStream === null || audioStream === void 0 ? void 0 : audioStream.getAudioTracks()) === null || _a === void 0 ? void 0 : _a[0];
22996
22997
  if (audioTrack) tracks.push(audioTrack);
22997
22998
  signatureRecorder.current = new MediaRecorder(new MediaStream(tracks), {
22998
- videoBitsPerSecond: 270000
22999
+ videoBitsPerSecond: 270000,
23000
+ audioBitsPerSecond: 32000
22999
23001
  });
23000
23002
  signatureRecorder.current.start();
23001
23003
  signatureRecorder.current.ondataavailable = function (event) {