@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.
- package/dist/realsee-live.cjs.development.js +7 -0
- package/dist/realsee-live.cjs.development.js.map +1 -1
- package/dist/realsee-live.cjs.production.js +1 -1
- package/dist/realsee-live.cjs.production.js.map +1 -1
- package/dist/realsee-live.esm.js +7 -0
- package/dist/realsee-live.esm.js.map +1 -1
- package/dist/realsee-live.umd.development.js +401 -475
- package/dist/realsee-live.umd.development.js.map +1 -1
- package/dist/realsee-live.umd.production.js +1 -1
- package/dist/realsee-live.umd.production.js.map +1 -1
- package/package.json +1 -1
|
@@ -1884,6 +1884,13 @@ class Live extends Subscribe {
|
|
|
1884
1884
|
return false;
|
|
1885
1885
|
}
|
|
1886
1886
|
const { force = false } = options;
|
|
1887
|
+
// 检测一下麦克风权限,hack
|
|
1888
|
+
if (this._options.rtc && this._options.jsBridge) {
|
|
1889
|
+
const res = yield this._options.jsBridge.detectMicro();
|
|
1890
|
+
if (!res) {
|
|
1891
|
+
return new Error('Failed to obtain microphone authorization');
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1887
1894
|
// 检查是否已有实例在使用
|
|
1888
1895
|
const currentState = this.state;
|
|
1889
1896
|
if (currentState === exports.LiveState.CONNECTING ||
|