fcr-ui-scene-mobile 3.8.2 → 3.9.0-alpha
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/lib/common/security-store.d.ts +3 -3
- package/lib/common/setting-store.js +1 -1
- package/lib/creator.js +2 -2
- package/lib/modules/action-bar/store.d.ts +2 -2
- package/lib/modules/action-bar/store.js +1 -2
- package/lib/modules/chat/message-list.js +1 -1
- package/lib/modules/chat/view.js +1 -1
- package/lib/modules/state-bar/meeting-detail/meeting-info/copy.js +1 -1
- package/lib/modules/state-bar/meeting-detail/meeting-info/index.js +9 -2
- package/lib/modules/state-bar/view.js +2 -4
- package/lib/plugins/module-dev-plugin.js +62 -81
- package/lib/translations/enUS.d.ts +10 -152
- package/lib/translations/enUS.js +44 -225
- package/lib/translations/zhCN.d.ts +10 -152
- package/lib/translations/zhCN.js +37 -218
- package/lib/utilities/logger.d.ts +1 -2
- package/lib/utilities/logger.js +8 -32
- package/lib/utilities/meeting-detail.d.ts +11 -0
- package/lib/utilities/{meeting-detail-message.js → meeting-detail.js} +34 -9
- package/lib/utilities/package-info.d.ts +1 -2
- package/lib/utilities/package-info.js +5 -6
- package/lib/utilities/tools.d.ts +1 -25
- package/lib/utilities/tools.js +20 -159
- package/package.json +6 -11
- package/lib/utilities/copyText.d.ts +0 -2
- package/lib/utilities/copyText.js +0 -43
- package/lib/utilities/hooks.d.ts +0 -14
- package/lib/utilities/hooks.js +0 -100
- package/lib/utilities/meeting-detail-message.d.ts +0 -2
- package/lib/utilities/mute-action.d.ts +0 -4
- package/lib/utilities/mute-action.js +0 -48
- package/lib/utilities/parameters.d.ts +0 -7
- package/lib/utilities/parameters.js +0 -20
- package/lib/utilities/regex.d.ts +0 -1
- package/lib/utilities/regex.js +0 -14
- package/lib/utilities/useNamespace.d.ts +0 -15
- package/lib/utilities/useNamespace.js +0 -66
- package/lib-es/assets/ground_glass_bg.png +0 -0
- package/lib-es/base.js +0 -34
- package/lib-es/common/device-store.js +0 -635
- package/lib-es/common/device-stream-store.js +0 -292
- package/lib-es/common/event-store.js +0 -243
- package/lib-es/common/global-context.js +0 -2
- package/lib-es/common/member-list-data-source.js +0 -291
- package/lib-es/common/participant-store.js +0 -1534
- package/lib-es/common/security-store.js +0 -938
- package/lib-es/common/setting-store.js +0 -782
- package/lib-es/common/type.js +0 -15
- package/lib-es/config/default-config.js +0 -36
- package/lib-es/config/setting-config.js +0 -10
- package/lib-es/creator.js +0 -102
- package/lib-es/error-fallback.js +0 -13
- package/lib-es/global.d.ts +0 -8
- package/lib-es/hooks/meeting-time.js +0 -96
- package/lib-es/hooks/useIsNodePresent.js +0 -46
- package/lib-es/hooks/useOnRefMount.js +0 -19
- package/lib-es/index.js +0 -14
- package/lib-es/mobile-global.css +0 -28
- package/lib-es/modules/action-bar/bottom-icons.js +0 -153
- package/lib-es/modules/action-bar/context.js +0 -2
- package/lib-es/modules/action-bar/index.css +0 -33
- package/lib-es/modules/action-bar/index.js +0 -38
- package/lib-es/modules/action-bar/member-list-popup/attendee/index.css +0 -130
- package/lib-es/modules/action-bar/member-list-popup/attendee/index.js +0 -247
- package/lib-es/modules/action-bar/member-list-popup/attendee/list.js +0 -63
- package/lib-es/modules/action-bar/member-list-popup/index.css +0 -35
- package/lib-es/modules/action-bar/member-list-popup/index.js +0 -33
- package/lib-es/modules/action-bar/member-list-popup/participant-more-actions/index.css +0 -0
- package/lib-es/modules/action-bar/member-list-popup/participant-more-actions/index.js +0 -48
- package/lib-es/modules/action-bar/more-popup/index.css +0 -71
- package/lib-es/modules/action-bar/more-popup/index.js +0 -119
- package/lib-es/modules/action-bar/store.js +0 -1343
- package/lib-es/modules/action-bar/type.js +0 -6
- package/lib-es/modules/action-bar/view.js +0 -68
- package/lib-es/modules/audio-stream/index.js +0 -125
- package/lib-es/modules/chat/chat-bar/index.css +0 -97
- package/lib-es/modules/chat/chat-bar/index.js +0 -115
- package/lib-es/modules/chat/chat-notification/index.css +0 -71
- package/lib-es/modules/chat/chat-notification/index.js +0 -67
- package/lib-es/modules/chat/chat-select/index.css +0 -183
- package/lib-es/modules/chat/chat-select/index.js +0 -213
- package/lib-es/modules/chat/contex.js +0 -2
- package/lib-es/modules/chat/demo-wrapper.js +0 -35
- package/lib-es/modules/chat/index.css +0 -109
- package/lib-es/modules/chat/index.dev.js +0 -55
- package/lib-es/modules/chat/index.js +0 -196
- package/lib-es/modules/chat/message-list.js +0 -605
- package/lib-es/modules/chat/mock.js +0 -276
- package/lib-es/modules/chat/store.js +0 -1094
- package/lib-es/modules/chat/util.js +0 -62
- package/lib-es/modules/chat/view.js +0 -406
- package/lib-es/modules/layout/bottom-drawer/index.css +0 -34
- package/lib-es/modules/layout/bottom-drawer/index.js +0 -110
- package/lib-es/modules/layout/components/Layout.js +0 -76
- package/lib-es/modules/layout/components/equip-request-popup/index.css +0 -30
- package/lib-es/modules/layout/components/equip-request-popup/index.js +0 -71
- package/lib-es/modules/layout/components/index.css +0 -78
- package/lib-es/modules/layout/components/index.js +0 -2
- package/lib-es/modules/layout/context.js +0 -2
- package/lib-es/modules/layout/drawer-header/index.css +0 -27
- package/lib-es/modules/layout/drawer-header/index.js +0 -46
- package/lib-es/modules/layout/index.css +0 -22
- package/lib-es/modules/layout/index.js +0 -39
- package/lib-es/modules/layout/store.js +0 -372
- package/lib-es/modules/layout/type.js +0 -47
- package/lib-es/modules/layout/view.js +0 -3
- package/lib-es/modules/member-layout/context.js +0 -2
- package/lib-es/modules/member-layout/data.js +0 -316
- package/lib-es/modules/member-layout/grid/index.css +0 -98
- package/lib-es/modules/member-layout/grid/index.js +0 -299
- package/lib-es/modules/member-layout/index.css +0 -88
- package/lib-es/modules/member-layout/index.js +0 -37
- package/lib-es/modules/member-layout/share-toast/index.css +0 -30
- package/lib-es/modules/member-layout/share-toast/index.js +0 -35
- package/lib-es/modules/member-layout/speaker/index.css +0 -30
- package/lib-es/modules/member-layout/speaker/index.js +0 -20
- package/lib-es/modules/member-layout/store.js +0 -521
- package/lib-es/modules/member-layout/user/index.css +0 -125
- package/lib-es/modules/member-layout/user/index.js +0 -351
- package/lib-es/modules/member-layout/user/types.js +0 -1
- package/lib-es/modules/member-layout/view.js +0 -203
- package/lib-es/modules/state-bar/context.js +0 -2
- package/lib-es/modules/state-bar/index.css +0 -79
- package/lib-es/modules/state-bar/index.js +0 -47
- package/lib-es/modules/state-bar/leaving-room/index.css +0 -14
- package/lib-es/modules/state-bar/leaving-room/index.js +0 -31
- package/lib-es/modules/state-bar/meeting-detail/index.css +0 -72
- package/lib-es/modules/state-bar/meeting-detail/index.js +0 -51
- package/lib-es/modules/state-bar/meeting-detail/meeting-info/copy.js +0 -74
- package/lib-es/modules/state-bar/meeting-detail/meeting-info/index.css +0 -92
- package/lib-es/modules/state-bar/meeting-detail/meeting-info/index.js +0 -176
- package/lib-es/modules/state-bar/meeting-detail/net-quality/index.css +0 -27
- package/lib-es/modules/state-bar/meeting-detail/net-quality/index.js +0 -81
- package/lib-es/modules/state-bar/store.js +0 -543
- package/lib-es/modules/state-bar/view.js +0 -212
- package/lib-es/modules/whiteboard/app.js +0 -33
- package/lib-es/modules/whiteboard/components/control-bar/index.css +0 -53
- package/lib-es/modules/whiteboard/components/control-bar/index.js +0 -148
- package/lib-es/modules/whiteboard/components/control-bar/store.js +0 -280
- package/lib-es/modules/whiteboard/components/loading/index.css +0 -76
- package/lib-es/modules/whiteboard/components/loading/index.js +0 -60
- package/lib-es/modules/whiteboard/components/loading/loading.png +0 -0
- package/lib-es/modules/whiteboard/components/multi-window/index.css +0 -65
- package/lib-es/modules/whiteboard/components/multi-window/index.js +0 -31
- package/lib-es/modules/whiteboard/components/pagination/index.css +0 -228
- package/lib-es/modules/whiteboard/components/pagination/index.js +0 -155
- package/lib-es/modules/whiteboard/components/pagination/store.js +0 -10
- package/lib-es/modules/whiteboard/components/progress/index.js +0 -36
- package/lib-es/modules/whiteboard/components/progress/style.css +0 -52
- package/lib-es/modules/whiteboard/components/scene-pagination.js +0 -23
- package/lib-es/modules/whiteboard/components/switch-theme/index.css +0 -98
- package/lib-es/modules/whiteboard/components/switch-theme/index.js +0 -79
- package/lib-es/modules/whiteboard/components/switch-theme/item.js +0 -46
- package/lib-es/modules/whiteboard/components/switch-theme/libs.js +0 -22
- package/lib-es/modules/whiteboard/components/toolbar/ style.css +0 -588
- package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +0 -30
- package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +0 -100
- package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +0 -51
- package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/index.js +0 -38
- package/lib-es/modules/whiteboard/components/toolbar/components/eraser-picker.js +0 -81
- package/lib-es/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +0 -46
- package/lib-es/modules/whiteboard/components/toolbar/components/history.js +0 -39
- package/lib-es/modules/whiteboard/components/toolbar/components/icons/fold-icon.js +0 -32
- package/lib-es/modules/whiteboard/components/toolbar/components/icons/move-icon.js +0 -59
- package/lib-es/modules/whiteboard/components/toolbar/components/move-handle.js +0 -125
- package/lib-es/modules/whiteboard/components/toolbar/components/pen-picker.js +0 -97
- package/lib-es/modules/whiteboard/components/toolbar/components/shape-picker.js +0 -158
- package/lib-es/modules/whiteboard/components/toolbar/hooks/index.js +0 -201
- package/lib-es/modules/whiteboard/components/toolbar/index.js +0 -164
- package/lib-es/modules/whiteboard/components/toolbar/store.js +0 -243
- package/lib-es/modules/whiteboard/context.js +0 -28
- package/lib-es/modules/whiteboard/index.js +0 -1128
- package/lib-es/modules/whiteboard/style.css +0 -143
- package/lib-es/modules/whiteboard/type.js +0 -59
- package/lib-es/modules/whiteboard/utils.js +0 -29
- package/lib-es/plugins/browser-runtime-plugin.js +0 -106
- package/lib-es/plugins/css-preset-plugin.js +0 -27
- package/lib-es/plugins/module-dev-plugin.js +0 -184
- package/lib-es/plugins/multi-lang-plugin.js +0 -18
- package/lib-es/plugins/rtm-plugin.js +0 -3
- package/lib-es/plugins/web-rtc-plugin.js +0 -3
- package/lib-es/runtime.d.ts +0 -94
- package/lib-es/translations/enUS.js +0 -2075
- package/lib-es/translations/zhCN.js +0 -2073
- package/lib-es/type.js +0 -36
- package/lib-es/ui-manager.js +0 -465
- package/lib-es/ui-scene.js +0 -116
- package/lib-es/utilities/board-context.js +0 -5
- package/lib-es/utilities/constant.js +0 -298
- package/lib-es/utilities/copyText.js +0 -36
- package/lib-es/utilities/extract.js +0 -109
- package/lib-es/utilities/hooks.js +0 -82
- package/lib-es/utilities/lang.js +0 -6
- package/lib-es/utilities/logger.js +0 -32
- package/lib-es/utilities/meeting-detail-message.js +0 -49
- package/lib-es/utilities/mute-action.js +0 -41
- package/lib-es/utilities/package-info.js +0 -7
- package/lib-es/utilities/parameters.js +0 -13
- package/lib-es/utilities/regex.js +0 -7
- package/lib-es/utilities/tools.js +0 -171
- package/lib-es/utilities/useNamespace.js +0 -59
|
@@ -95,8 +95,8 @@ export declare class FcrSecurityStore {
|
|
|
95
95
|
/** 当前是否是多行水印 */
|
|
96
96
|
isWatermarkMultiRow: () => boolean;
|
|
97
97
|
getAllowedOperations(targetUserRole: FcrUserRole, _isSelf: boolean): string[];
|
|
98
|
-
allowShare(state: FcrSharePermissionState): Promise<
|
|
99
|
-
setAllowWriteBoard(state: FcrSharePermissionState): Promise<
|
|
98
|
+
allowShare(state: FcrSharePermissionState): Promise<number>;
|
|
99
|
+
setAllowWriteBoard(state: FcrSharePermissionState): Promise<number>;
|
|
100
100
|
muteAll: () => void;
|
|
101
101
|
unmuteAll: () => void;
|
|
102
102
|
setLockRoomEnabled: (enable: boolean) => void;
|
|
@@ -116,5 +116,5 @@ export declare class FcrSecurityStore {
|
|
|
116
116
|
private _handleSecurityUpdated;
|
|
117
117
|
permitPrivateChat(userId: string): boolean;
|
|
118
118
|
private _removeReactions;
|
|
119
|
-
setAllowWaterMark(state: boolean, lineType?: FcrLineType): Promise<
|
|
119
|
+
setAllowWaterMark(state: boolean, lineType?: FcrLineType): Promise<number>;
|
|
120
120
|
}
|
|
@@ -204,7 +204,7 @@ var SettingStore = exports.SettingStore = /*#__PURE__*/function () {
|
|
|
204
204
|
displayedMaxAttendees: 16,
|
|
205
205
|
autoAdjustmentSpeakerVolume: true,
|
|
206
206
|
autoAdjustmentMicrophoneVolume: true,
|
|
207
|
-
noiseReduce: _fcrCore.FcrAiDenoiseLevel.
|
|
207
|
+
noiseReduce: _fcrCore.FcrAiDenoiseLevel.HIGH,
|
|
208
208
|
recordingPath: '',
|
|
209
209
|
videoHD: true,
|
|
210
210
|
videoLowLight: false,
|
package/lib/creator.js
CHANGED
|
@@ -50,7 +50,7 @@ var FcrUISceneCreator = exports.FcrUISceneCreator = /*#__PURE__*/function () {
|
|
|
50
50
|
cameraExpectedOff: false
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
-
var config = _objectSpread(_objectSpread({}, this._config), {}, {
|
|
53
|
+
var config = new _fcrCore.FcrCoreEngineConfig(_objectSpread(_objectSpread({}, this._config), {}, {
|
|
54
54
|
region: _type.FcrRegion.CN,
|
|
55
55
|
dualCameraVideoStreamConfig: {
|
|
56
56
|
highVideoEncoderConfig: _defaultConfig.cameraVideoHighStreamEncoderLowConfig,
|
|
@@ -62,7 +62,7 @@ var FcrUISceneCreator = exports.FcrUISceneCreator = /*#__PURE__*/function () {
|
|
|
62
62
|
lowVideoEncoderConfig: _defaultConfig.screenCaptureHighStreamEncoderConfig,
|
|
63
63
|
enableDualStreamMode: false
|
|
64
64
|
}
|
|
65
|
-
});
|
|
65
|
+
}));
|
|
66
66
|
var engine = new _fcrCore.FcrCoreEngine(config);
|
|
67
67
|
|
|
68
68
|
// @ts-ignore
|
|
@@ -134,8 +134,8 @@ export default class ActionBarStore {
|
|
|
134
134
|
enableCamera(enable: boolean): void;
|
|
135
135
|
enableMicrophone(enable: boolean): void;
|
|
136
136
|
closeSpeaker(): void;
|
|
137
|
-
setAllowBoardWrite(): Promise<
|
|
138
|
-
setAllowScreenShare(): Promise<
|
|
137
|
+
setAllowBoardWrite(): Promise<number>;
|
|
138
|
+
setAllowScreenShare(): Promise<number>;
|
|
139
139
|
closeBoard(): void;
|
|
140
140
|
assignHost(user: FcrUserInfo): void;
|
|
141
141
|
leave(): void;
|
|
@@ -64,7 +64,7 @@ var _mobxReact = require("mobx-react");
|
|
|
64
64
|
var _throttle = _interopRequireDefault(require("lodash/throttle"));
|
|
65
65
|
var _multiSelect = require("agora-ui-foundation/lib/components/multi-select");
|
|
66
66
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
67
|
-
var _copyText = require("
|
|
67
|
+
var _copyText = require("agora-ui-foundation/lib/utilities/copy-text");
|
|
68
68
|
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
69
69
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
70
70
|
var _jsxRuntime = require("react/jsx-runtime");
|
package/lib/modules/chat/view.js
CHANGED
|
@@ -55,7 +55,7 @@ var _chatBar = require("./chat-bar");
|
|
|
55
55
|
var _type = require("../../type");
|
|
56
56
|
var _type2 = require("fcr-core/lib/type");
|
|
57
57
|
var _util = require("./util");
|
|
58
|
-
var _copyText = require("
|
|
58
|
+
var _copyText = require("agora-ui-foundation/lib/utilities/copy-text");
|
|
59
59
|
var _chatManager = require("agora-ui-foundation/lib/components/chat-manager");
|
|
60
60
|
var _type3 = require("fcr-core/lib/room-control/chatroom-control/type");
|
|
61
61
|
var _fcrCore = require("fcr-core");
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.handleCopyMeetingPassword = exports.handleCopyMeetingInviteLink = exports.handleCopyMeetingId = exports.handleCopyMeetingDetail = void 0;
|
|
8
8
|
var _toast = require("agora-ui-foundation/lib/components/toast");
|
|
9
|
-
var _copyText = require("
|
|
9
|
+
var _copyText = require("agora-ui-foundation/lib/utilities/copy-text");
|
|
10
10
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
11
11
|
var handleCopyMeetingId = exports.handleCopyMeetingId = function handleCopyMeetingId(meetingId) {
|
|
12
12
|
if (!meetingId) {
|
|
@@ -19,7 +19,7 @@ var _globalContext = require("../../../../common/global-context");
|
|
|
19
19
|
var _mobxReact = require("mobx-react");
|
|
20
20
|
var _copy = require("./copy");
|
|
21
21
|
var _tools = require("../../../../utilities/tools");
|
|
22
|
-
var
|
|
22
|
+
var _meetingDetail = require("../../../../utilities/meeting-detail");
|
|
23
23
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
24
24
|
var FcrMobileCopyIcon = function FcrMobileCopyIcon(_ref) {
|
|
25
25
|
var onClick = _ref.onClick;
|
|
@@ -51,7 +51,14 @@ var FcrMobileMeetingInfo = exports.FcrMobileMeetingInfo = (0, _mobxReact.observe
|
|
|
51
51
|
var isLockRoomEnabled = securityStore.isLockRoomEnabled;
|
|
52
52
|
var shareLink = getShareLink();
|
|
53
53
|
var displayMeetingId = (0, _tools.renderMeetingId)(meetingId, (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomId) || '');
|
|
54
|
-
var detailText = (0,
|
|
54
|
+
var detailText = (0, _meetingDetail.generateMeetingDetail)({
|
|
55
|
+
userName: (localUser === null || localUser === void 0 ? void 0 : localUser.userName) || '',
|
|
56
|
+
roomName: (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomName) || '',
|
|
57
|
+
invitationTime: (0, _meetingDetail.generateMeetingDuration)((scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.startTime) || 0, (scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.duration) || 0),
|
|
58
|
+
inviteLink: shareLink,
|
|
59
|
+
displayMeetingId: meetingId || (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomId) || '',
|
|
60
|
+
password: (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.password) || ''
|
|
61
|
+
});
|
|
55
62
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
56
63
|
className: "fcr-mobile-meeting-detail-theme",
|
|
57
64
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -64,12 +64,10 @@ var MeetingTimeText = exports.MeetingTimeText = (0, _mobxReact.observer)(functio
|
|
|
64
64
|
duration: (scheduleInfoDuration || 0) * 1000,
|
|
65
65
|
enterTime: localStorage.getItem("enter-room-".concat(roomId))
|
|
66
66
|
}),
|
|
67
|
-
totalHourText = _useMeetingTime.totalHourText,
|
|
68
|
-
totalMinuteText = _useMeetingTime.totalMinuteText,
|
|
69
67
|
meetingTime = _useMeetingTime.meetingTime;
|
|
70
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
68
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
71
69
|
className: "fcr-top-action-center-lasttime",
|
|
72
|
-
children:
|
|
70
|
+
children: meetingTime
|
|
73
71
|
});
|
|
74
72
|
});
|
|
75
73
|
var FullScreenLockConfirmDialogContent = function FullScreenLockConfirmDialogContent(_ref3) {
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
4
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
5
9
|
require("core-js/modules/es.date.now.js");
|
|
6
10
|
require("core-js/modules/es.date.to-json.js");
|
|
@@ -8,7 +12,6 @@ require("core-js/modules/es.json.stringify.js");
|
|
|
8
12
|
require("core-js/modules/es.object.to-string.js");
|
|
9
13
|
require("core-js/modules/es.promise.js");
|
|
10
14
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
|
-
var _fcrCore = require("fcr-core");
|
|
12
15
|
/**
|
|
13
16
|
* 创建房间
|
|
14
17
|
* @param roomName
|
|
@@ -105,83 +108,61 @@ var getUserToken = /*#__PURE__*/function () {
|
|
|
105
108
|
var roomId = 'test-room';
|
|
106
109
|
var userId = "test-user-".concat(Date.now());
|
|
107
110
|
var role = 'host';
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
},
|
|
167
|
-
core: {
|
|
168
|
-
coreIpList: ['http://api-solutions-dev.bj2.agoralab.co']
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
window.__DEV_ROOM_ID__ = roomId;
|
|
173
|
-
window.__DEV_USER_ID__ = userId;
|
|
174
|
-
window.__DEV_USER_ROLE__ = role;
|
|
175
|
-
window.__DEV_USER_TOKEN__ = token;
|
|
176
|
-
window.__DEV_APP_ID__ = appId;
|
|
177
|
-
}));
|
|
178
|
-
case 1:
|
|
179
|
-
case "end":
|
|
180
|
-
return _context3.stop();
|
|
181
|
-
}
|
|
182
|
-
}, _callee3);
|
|
183
|
-
}));
|
|
184
|
-
return function (_x6) {
|
|
185
|
-
return _ref3.apply(this, arguments);
|
|
186
|
-
};
|
|
187
|
-
}());
|
|
111
|
+
|
|
112
|
+
// window.__DEV_ENGINE_IS_READY__ = createRoom(roomId).then(async (roomId) => {
|
|
113
|
+
// return getUserToken(roomId, userId, userId, role).then(({ token, appId }) => {
|
|
114
|
+
// window.__DEV_ENGINE__ = new FcrCoreEngine({
|
|
115
|
+
// appId: appId,
|
|
116
|
+
// token: token,
|
|
117
|
+
// region: FcrRegion.CN,
|
|
118
|
+
// userId: userId,
|
|
119
|
+
// dualCameraVideoStreamConfig: {
|
|
120
|
+
// highVideoEncoderConfig: {
|
|
121
|
+
// dimensions: { width: 640, height: 480 },
|
|
122
|
+
// frameRate: 15,
|
|
123
|
+
// bitrate: 800,
|
|
124
|
+
// // isMirror: false,
|
|
125
|
+
// },
|
|
126
|
+
// lowVideoEncoderConfig: {
|
|
127
|
+
// dimensions: { width: 320, height: 240 },
|
|
128
|
+
// frameRate: 15,
|
|
129
|
+
// bitrate: 400,
|
|
130
|
+
// // isMirror: false,
|
|
131
|
+
// },
|
|
132
|
+
// enableDualStreamMode: false,
|
|
133
|
+
// },
|
|
134
|
+
// dualScreenVideoStreamConfig: {
|
|
135
|
+
// highVideoEncoderConfig: {
|
|
136
|
+
// dimensions: { width: 640, height: 480 },
|
|
137
|
+
// frameRate: 15,
|
|
138
|
+
// bitrate: 800,
|
|
139
|
+
// // isMirror: false,
|
|
140
|
+
// },
|
|
141
|
+
// lowVideoEncoderConfig: {
|
|
142
|
+
// dimensions: {
|
|
143
|
+
// width: 320,
|
|
144
|
+
// height: 240,
|
|
145
|
+
// },
|
|
146
|
+
// frameRate: 15,
|
|
147
|
+
// bitrate: 400,
|
|
148
|
+
// // isMirror: false,
|
|
149
|
+
// },
|
|
150
|
+
// enableDualStreamMode: false,
|
|
151
|
+
// },
|
|
152
|
+
// parameters: {
|
|
153
|
+
// rte: {
|
|
154
|
+
// rteIpList: ['http://api-solutions-dev.bj2.agoralab.co'],
|
|
155
|
+
// },
|
|
156
|
+
// core: {
|
|
157
|
+
// coreIpList: ['http://api-solutions-dev.bj2.agoralab.co'],
|
|
158
|
+
// },
|
|
159
|
+
// },
|
|
160
|
+
// });
|
|
161
|
+
|
|
162
|
+
// window.__DEV_ROOM_ID__ = roomId;
|
|
163
|
+
// window.__DEV_USER_ID__ = userId;
|
|
164
|
+
// window.__DEV_USER_ROLE__ = role;
|
|
165
|
+
// window.__DEV_USER_TOKEN__ = token;
|
|
166
|
+
// window.__DEV_APP_ID__ = appId;
|
|
167
|
+
// });
|
|
168
|
+
// });
|