@realsee/live 0.5.0-alpha.8 → 0.5.0-alpha.9

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.
@@ -1874,6 +1874,13 @@ class Live extends Subscribe {
1874
1874
  return false;
1875
1875
  }
1876
1876
  const { force = false } = options;
1877
+ // 检测一下麦克风权限,hack
1878
+ if (this._options.rtc && this._options.jsBridge) {
1879
+ const res = yield this._options.jsBridge.detectMicro();
1880
+ if (!res) {
1881
+ return new Error('Failed to obtain microphone authorization');
1882
+ }
1883
+ }
1877
1884
  // 检查是否已有实例在使用
1878
1885
  const currentState = this.state;
1879
1886
  if (currentState === LiveState.CONNECTING ||