@realsee/live 0.5.2-dev.6 → 0.5.2-dev.7

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.
@@ -3766,6 +3766,7 @@ class Live extends Subscribe$1 {
3766
3766
  })();
3767
3767
  // 第二步检查getVoiceSign
3768
3768
  this._options.getVoiceSign = (_a = opts.getVoiceSign) !== null && _a !== void 0 ? _a : unimplementedGetVoiceSign;
3769
+ this._options.autoPlayConfirm = opts.autoPlayConfirm;
3769
3770
  // 第二步检查rtc
3770
3771
  this._options.rtc = (() => {
3771
3772
  // 优先取rtc实例
@@ -3799,7 +3800,9 @@ class Live extends Subscribe$1 {
3799
3800
  }
3800
3801
  case exports.RTCType.RealseeBrowserRTC: {
3801
3802
  // 内置的 RealseeBrowserRTC
3802
- logger$1.error('autoPlayConfirm method must be passed when using built-in RTC instances');
3803
+ if (!this._options.autoPlayConfirm) {
3804
+ logger$1.error('autoPlayConfirm method must be passed when using built-in RealseeBrowserRTC instances');
3805
+ }
3803
3806
  return new BrowserRTC({
3804
3807
  getVoiceSign: this._options.getVoiceSign,
3805
3808
  autoPlayConfirm: this._options.autoPlayConfirm,