@realsee/live 0.4.0-alpha.4 → 0.4.0-beta.2
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/README.md +22 -0
- package/dist/realsee-live.cjs.development.js +10 -8
- 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 +10 -8
- package/dist/realsee-live.esm.js.map +1 -1
- package/dist/realsee-live.umd.development.js +10 -8
- 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/dist/typings/react/LiveReact.d.ts +2 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/custom.css +43 -0
- package/docs/assets/highlight.css +120 -0
- package/docs/assets/icons.css +1043 -0
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
- package/docs/assets/main.js +52 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1414 -0
- package/docs/assets/widgets.png +0 -0
- package/docs/assets/widgets@2x.png +0 -0
- package/docs/classes/BrowserRTC.html +68 -0
- package/docs/classes/BrowserRTC4Chime.html +76 -0
- package/docs/classes/CoreRTC.html +70 -0
- package/docs/classes/VRWebViewRTC.html +68 -0
- package/docs/enums/BuiltInRTCType.html +1 -0
- package/docs/enums/BuiltinActionType.html +15 -0
- package/docs/enums/BuiltinEventType.html +7 -0
- package/docs/enums/Command.html +7 -0
- package/docs/enums/MemUserStatus.html +1 -0
- package/docs/enums/MicroStatus.html +3 -0
- package/docs/enums/RTCJoinedInfoCodeEnum.html +11 -0
- package/docs/enums/RTCType.html +3 -0
- package/docs/enums/UserStatus.html +9 -0
- package/docs/enums/WebSocketCloseError.html +19 -0
- package/docs/enums/WebSocketErrorType.html +1 -0
- package/docs/enums/WebSocketState.html +13 -0
- package/docs/index.html +386 -0
- package/docs/interfaces/AttendeeResponse.html +1 -0
- package/docs/interfaces/GetVoiceSignReturnType.html +3 -0
- package/docs/interfaces/Live.html +116 -0
- package/docs/interfaces/LiveOptions.html +39 -0
- package/docs/interfaces/LiveReact.html +52 -0
- package/docs/interfaces/MeetingResponse.html +1 -0
- package/docs/interfaces/MeetingSessionConfigurationOptions.html +1 -0
- package/docs/interfaces/RTCJoinedInfo.html +3 -0
- package/docs/interfaces/RTCProtocol.html +70 -0
- package/docs/interfaces/VRWebViewRTCOptions.html +1 -0
- package/docs/modules.html +133 -0
- package/package.json +5 -2
|
@@ -50881,6 +50881,10 @@
|
|
|
50881
50881
|
var _a, _b, _c;
|
|
50882
50882
|
super();
|
|
50883
50883
|
this.keyframes = new Subscribe$1();
|
|
50884
|
+
const jsBridge = ((_a = options.jsBridge) !== null && _a !== void 0 ? _a : options.useBuiltInJsBridge)
|
|
50885
|
+
? new JSBridge()
|
|
50886
|
+
: undefined;
|
|
50887
|
+
liveController.options.jsBridge = jsBridge;
|
|
50884
50888
|
// 没有传rtc实例时
|
|
50885
50889
|
if (!options.rtc) {
|
|
50886
50890
|
// 取指定的内部rtc类型
|
|
@@ -50888,15 +50892,15 @@
|
|
|
50888
50892
|
if (!options.getVoiceSign) {
|
|
50889
50893
|
throw new Error('GetVoiceSign method must be passed when using built-in RTC instances');
|
|
50890
50894
|
}
|
|
50891
|
-
const getVoiceSign = (
|
|
50895
|
+
const getVoiceSign = (_b = options.getVoiceSign) !== null && _b !== void 0 ? _b : unimplementedGetVoiceSign;
|
|
50892
50896
|
switch (options.rtcType) {
|
|
50893
50897
|
case exports.RTCType.RealseeVRWebViewRTC: {
|
|
50894
50898
|
// 内置的 VRWebViewRTC
|
|
50895
|
-
if (!
|
|
50899
|
+
if (!jsBridge) {
|
|
50896
50900
|
throw new Error('JsBridge instance must be passed when using built-in VRWebViewRTC instances');
|
|
50897
50901
|
}
|
|
50898
50902
|
liveController.options.rtc = new VRWebViewRTC({
|
|
50899
|
-
jsBridge
|
|
50903
|
+
jsBridge,
|
|
50900
50904
|
getVoiceSign,
|
|
50901
50905
|
});
|
|
50902
50906
|
break;
|
|
@@ -50926,14 +50930,10 @@
|
|
|
50926
50930
|
if (!options.getVoiceSign) {
|
|
50927
50931
|
throw new Error('GetVoiceSign method must be passed when using built-in RTC instances');
|
|
50928
50932
|
}
|
|
50929
|
-
const getVoiceSign = (
|
|
50930
|
-
const jsBridge = ((_c = options.jsBridge) !== null && _c !== void 0 ? _c : options.useBuiltInJsBridge)
|
|
50931
|
-
? new JSBridge()
|
|
50932
|
-
: null;
|
|
50933
|
+
const getVoiceSign = (_c = options.getVoiceSign) !== null && _c !== void 0 ? _c : unimplementedGetVoiceSign;
|
|
50933
50934
|
if (!jsBridge) {
|
|
50934
50935
|
throw new Error('jsBridge instance must be passed when using built-in RTC instances');
|
|
50935
50936
|
}
|
|
50936
|
-
options.jsBridge = jsBridge;
|
|
50937
50937
|
// vrwebview 默认
|
|
50938
50938
|
if ((isRealseeVRWebview && (isAndroid || isIOS)) || isWxMiniProgram) {
|
|
50939
50939
|
liveController.options.rtc = new VRWebViewRTC({
|
|
@@ -53672,6 +53672,7 @@
|
|
|
53672
53672
|
function createLiveReact(options) {
|
|
53673
53673
|
const LiveContext = React.createContext(null);
|
|
53674
53674
|
const live = createLive(options);
|
|
53675
|
+
const jsBridge = live.jsBridge;
|
|
53675
53676
|
function LiveProvider(props) {
|
|
53676
53677
|
return (React.createElement(LiveContext.Provider, { value: props.live || live }, props.children));
|
|
53677
53678
|
}
|
|
@@ -53867,6 +53868,7 @@
|
|
|
53867
53868
|
}
|
|
53868
53869
|
return {
|
|
53869
53870
|
live,
|
|
53871
|
+
jsBridge,
|
|
53870
53872
|
LiveProvider,
|
|
53871
53873
|
unsafe__useLiveInstance,
|
|
53872
53874
|
unsafe__useRTCInstance,
|