@realsee/live 0.5.4 → 0.5.5

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.
@@ -672,7 +672,7 @@ var BrowserRTC4Chime = /** @class */ (function (_super) {
672
672
  this.emit('joinWillStart');
673
673
  _d.label = 1;
674
674
  case 1:
675
- _d.trys.push([1, 5, , 6]);
675
+ _d.trys.push([1, 6, , 7]);
676
676
  return [4 /*yield*/, this._getVoiceSign(__assign$1(__assign$1({}, options), { roomId: options.roomId || 0 }))];
677
677
  case 2:
678
678
  _a = _d.sent(), userId = _a.userId, userSig = _a.userSig;
@@ -716,18 +716,21 @@ var BrowserRTC4Chime = /** @class */ (function (_super) {
716
716
  defaultAudioInput = audioInputDevices.find(function (device) { return device.deviceId === 'default'; });
717
717
  otherAudioInput = audioInputDevices.find(function (device) { return device.deviceId !== ''; });
718
718
  this.audioInput = defaultAudioInput || otherAudioInput;
719
- return [4 /*yield*/, this.meetingSession.audioVideo.startAudioInput(((_c = this.audioInput) === null || _c === void 0 ? void 0 : _c.deviceId) || 'default')];
719
+ return [4 /*yield*/, this.meetingSession.audioVideo.stopVideoInput()];
720
720
  case 4:
721
721
  _d.sent();
722
- this.meetingSession.audioVideo.start();
723
- return [3 /*break*/, 6];
722
+ return [4 /*yield*/, this.meetingSession.audioVideo.startAudioInput(((_c = this.audioInput) === null || _c === void 0 ? void 0 : _c.deviceId) || 'default')];
724
723
  case 5:
724
+ _d.sent();
725
+ this.meetingSession.audioVideo.start();
726
+ return [3 /*break*/, 7];
727
+ case 6:
725
728
  e_1 = _d.sent();
726
729
  this.emit('error', e_1);
727
730
  this.logger.error(e_1.message);
728
731
  success(false);
729
- return [3 /*break*/, 6];
730
- case 6: return [2 /*return*/];
732
+ return [3 /*break*/, 7];
733
+ case 7: return [2 /*return*/];
731
734
  }
732
735
  });
733
736
  }); })];