@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.
@@ -3757,6 +3757,7 @@ class Live extends Subscribe$1 {
3757
3757
  })();
3758
3758
  // 第二步检查getVoiceSign
3759
3759
  this._options.getVoiceSign = (_a = opts.getVoiceSign) !== null && _a !== void 0 ? _a : unimplementedGetVoiceSign;
3760
+ this._options.autoPlayConfirm = opts.autoPlayConfirm;
3760
3761
  // 第二步检查rtc
3761
3762
  this._options.rtc = (() => {
3762
3763
  // 优先取rtc实例
@@ -3790,7 +3791,9 @@ class Live extends Subscribe$1 {
3790
3791
  }
3791
3792
  case RTCType.RealseeBrowserRTC: {
3792
3793
  // 内置的 RealseeBrowserRTC
3793
- logger$1.error('autoPlayConfirm method must be passed when using built-in RTC instances');
3794
+ if (!this._options.autoPlayConfirm) {
3795
+ logger$1.error('autoPlayConfirm method must be passed when using built-in RealseeBrowserRTC instances');
3796
+ }
3794
3797
  return new BrowserRTC({
3795
3798
  getVoiceSign: this._options.getVoiceSign,
3796
3799
  autoPlayConfirm: this._options.autoPlayConfirm,