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.
package/dist/sdk2.esm.js CHANGED
@@ -204,7 +204,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
204
204
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
205
205
  };
206
206
 
207
- var webSdkVersion = '2.2.106';
207
+ var webSdkVersion = '2.2.107';
208
208
 
209
209
  function getPlatform() {
210
210
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -12904,8 +12904,9 @@ function VideoSignatureContextProvider(_a) {
12904
12904
  (function () {
12905
12905
  return __awaiter(_this, void 0, void 0, function () {
12906
12906
  var stream, tracks, audioTrack;
12907
- return __generator(this, function (_a) {
12908
- switch (_a.label) {
12907
+ var _a;
12908
+ return __generator(this, function (_b) {
12909
+ switch (_b.label) {
12909
12910
  case 0:
12910
12911
  if (!!outputCanvas.current) return [3 /*break*/, 2];
12911
12912
  return [4 /*yield*/, new Promise(function (resolve) {
@@ -12917,17 +12918,18 @@ function VideoSignatureContextProvider(_a) {
12917
12918
  }, 10);
12918
12919
  })];
12919
12920
  case 1:
12920
- _a.sent();
12921
- _a.label = 2;
12921
+ _b.sent();
12922
+ _b.label = 2;
12922
12923
  case 2:
12923
12924
  startRecordingVideo();
12924
12925
  if (captureAudio) startRecordingAudio();
12925
12926
  stream = outputCanvas.current.captureStream(24 /* fps */);
12926
12927
  tracks = [stream.getVideoTracks()[0]];
12927
- audioTrack = audioStream.getAudioTracks()[0];
12928
+ audioTrack = (_a = audioStream === null || audioStream === void 0 ? void 0 : audioStream.getAudioTracks()) === null || _a === void 0 ? void 0 : _a[0];
12928
12929
  if (audioTrack) tracks.push(audioTrack);
12929
12930
  signatureRecorder.current = new MediaRecorder(new MediaStream(tracks), {
12930
- videoBitsPerSecond: 270000
12931
+ videoBitsPerSecond: 270000,
12932
+ audioBitsPerSecond: 32000
12931
12933
  });
12932
12934
  signatureRecorder.current.start();
12933
12935
  signatureRecorder.current.ondataavailable = function (event) {