@realsee/live 0.4.0-beta.1 → 0.4.0-beta.4
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 +10 -6
- 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 -6
- package/dist/realsee-live.esm.js.map +1 -1
- package/dist/realsee-live.umd.development.js +10 -6
- 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/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 +15 -11
|
@@ -1265,12 +1265,16 @@ function createLive(options) {
|
|
|
1265
1265
|
};
|
|
1266
1266
|
class LiveTpl extends Subscribe {
|
|
1267
1267
|
constructor() {
|
|
1268
|
-
var _a, _b
|
|
1268
|
+
var _a, _b;
|
|
1269
1269
|
super();
|
|
1270
1270
|
this.keyframes = new Subscribe();
|
|
1271
|
-
const jsBridge = ((
|
|
1272
|
-
|
|
1273
|
-
|
|
1271
|
+
const jsBridge = (() => {
|
|
1272
|
+
if (options.jsBridge)
|
|
1273
|
+
return options.jsBridge;
|
|
1274
|
+
if (options.useBuiltInJsBridge)
|
|
1275
|
+
return new JSBridge__default["default"]();
|
|
1276
|
+
return undefined;
|
|
1277
|
+
})();
|
|
1274
1278
|
liveController.options.jsBridge = jsBridge;
|
|
1275
1279
|
// 没有传rtc实例时
|
|
1276
1280
|
if (!options.rtc) {
|
|
@@ -1279,7 +1283,7 @@ function createLive(options) {
|
|
|
1279
1283
|
if (!options.getVoiceSign) {
|
|
1280
1284
|
throw new Error('GetVoiceSign method must be passed when using built-in RTC instances');
|
|
1281
1285
|
}
|
|
1282
|
-
const getVoiceSign = (
|
|
1286
|
+
const getVoiceSign = (_a = options.getVoiceSign) !== null && _a !== void 0 ? _a : unimplementedGetVoiceSign;
|
|
1283
1287
|
switch (options.rtcType) {
|
|
1284
1288
|
case exports.RTCType.RealseeVRWebViewRTC: {
|
|
1285
1289
|
// 内置的 VRWebViewRTC
|
|
@@ -1317,7 +1321,7 @@ function createLive(options) {
|
|
|
1317
1321
|
if (!options.getVoiceSign) {
|
|
1318
1322
|
throw new Error('GetVoiceSign method must be passed when using built-in RTC instances');
|
|
1319
1323
|
}
|
|
1320
|
-
const getVoiceSign = (
|
|
1324
|
+
const getVoiceSign = (_b = options.getVoiceSign) !== null && _b !== void 0 ? _b : unimplementedGetVoiceSign;
|
|
1321
1325
|
if (!jsBridge) {
|
|
1322
1326
|
throw new Error('jsBridge instance must be passed when using built-in RTC instances');
|
|
1323
1327
|
}
|