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.
Files changed (201) hide show
  1. package/lib/common/security-store.d.ts +3 -3
  2. package/lib/common/setting-store.js +1 -1
  3. package/lib/creator.js +2 -2
  4. package/lib/modules/action-bar/store.d.ts +2 -2
  5. package/lib/modules/action-bar/store.js +1 -2
  6. package/lib/modules/chat/message-list.js +1 -1
  7. package/lib/modules/chat/view.js +1 -1
  8. package/lib/modules/state-bar/meeting-detail/meeting-info/copy.js +1 -1
  9. package/lib/modules/state-bar/meeting-detail/meeting-info/index.js +9 -2
  10. package/lib/modules/state-bar/view.js +2 -4
  11. package/lib/plugins/module-dev-plugin.js +62 -81
  12. package/lib/translations/enUS.d.ts +10 -152
  13. package/lib/translations/enUS.js +44 -225
  14. package/lib/translations/zhCN.d.ts +10 -152
  15. package/lib/translations/zhCN.js +37 -218
  16. package/lib/utilities/logger.d.ts +1 -2
  17. package/lib/utilities/logger.js +8 -32
  18. package/lib/utilities/meeting-detail.d.ts +11 -0
  19. package/lib/utilities/{meeting-detail-message.js → meeting-detail.js} +34 -9
  20. package/lib/utilities/package-info.d.ts +1 -2
  21. package/lib/utilities/package-info.js +5 -6
  22. package/lib/utilities/tools.d.ts +1 -25
  23. package/lib/utilities/tools.js +20 -159
  24. package/package.json +6 -11
  25. package/lib/utilities/copyText.d.ts +0 -2
  26. package/lib/utilities/copyText.js +0 -43
  27. package/lib/utilities/hooks.d.ts +0 -14
  28. package/lib/utilities/hooks.js +0 -100
  29. package/lib/utilities/meeting-detail-message.d.ts +0 -2
  30. package/lib/utilities/mute-action.d.ts +0 -4
  31. package/lib/utilities/mute-action.js +0 -48
  32. package/lib/utilities/parameters.d.ts +0 -7
  33. package/lib/utilities/parameters.js +0 -20
  34. package/lib/utilities/regex.d.ts +0 -1
  35. package/lib/utilities/regex.js +0 -14
  36. package/lib/utilities/useNamespace.d.ts +0 -15
  37. package/lib/utilities/useNamespace.js +0 -66
  38. package/lib-es/assets/ground_glass_bg.png +0 -0
  39. package/lib-es/base.js +0 -34
  40. package/lib-es/common/device-store.js +0 -635
  41. package/lib-es/common/device-stream-store.js +0 -292
  42. package/lib-es/common/event-store.js +0 -243
  43. package/lib-es/common/global-context.js +0 -2
  44. package/lib-es/common/member-list-data-source.js +0 -291
  45. package/lib-es/common/participant-store.js +0 -1534
  46. package/lib-es/common/security-store.js +0 -938
  47. package/lib-es/common/setting-store.js +0 -782
  48. package/lib-es/common/type.js +0 -15
  49. package/lib-es/config/default-config.js +0 -36
  50. package/lib-es/config/setting-config.js +0 -10
  51. package/lib-es/creator.js +0 -102
  52. package/lib-es/error-fallback.js +0 -13
  53. package/lib-es/global.d.ts +0 -8
  54. package/lib-es/hooks/meeting-time.js +0 -96
  55. package/lib-es/hooks/useIsNodePresent.js +0 -46
  56. package/lib-es/hooks/useOnRefMount.js +0 -19
  57. package/lib-es/index.js +0 -14
  58. package/lib-es/mobile-global.css +0 -28
  59. package/lib-es/modules/action-bar/bottom-icons.js +0 -153
  60. package/lib-es/modules/action-bar/context.js +0 -2
  61. package/lib-es/modules/action-bar/index.css +0 -33
  62. package/lib-es/modules/action-bar/index.js +0 -38
  63. package/lib-es/modules/action-bar/member-list-popup/attendee/index.css +0 -130
  64. package/lib-es/modules/action-bar/member-list-popup/attendee/index.js +0 -247
  65. package/lib-es/modules/action-bar/member-list-popup/attendee/list.js +0 -63
  66. package/lib-es/modules/action-bar/member-list-popup/index.css +0 -35
  67. package/lib-es/modules/action-bar/member-list-popup/index.js +0 -33
  68. package/lib-es/modules/action-bar/member-list-popup/participant-more-actions/index.css +0 -0
  69. package/lib-es/modules/action-bar/member-list-popup/participant-more-actions/index.js +0 -48
  70. package/lib-es/modules/action-bar/more-popup/index.css +0 -71
  71. package/lib-es/modules/action-bar/more-popup/index.js +0 -119
  72. package/lib-es/modules/action-bar/store.js +0 -1343
  73. package/lib-es/modules/action-bar/type.js +0 -6
  74. package/lib-es/modules/action-bar/view.js +0 -68
  75. package/lib-es/modules/audio-stream/index.js +0 -125
  76. package/lib-es/modules/chat/chat-bar/index.css +0 -97
  77. package/lib-es/modules/chat/chat-bar/index.js +0 -115
  78. package/lib-es/modules/chat/chat-notification/index.css +0 -71
  79. package/lib-es/modules/chat/chat-notification/index.js +0 -67
  80. package/lib-es/modules/chat/chat-select/index.css +0 -183
  81. package/lib-es/modules/chat/chat-select/index.js +0 -213
  82. package/lib-es/modules/chat/contex.js +0 -2
  83. package/lib-es/modules/chat/demo-wrapper.js +0 -35
  84. package/lib-es/modules/chat/index.css +0 -109
  85. package/lib-es/modules/chat/index.dev.js +0 -55
  86. package/lib-es/modules/chat/index.js +0 -196
  87. package/lib-es/modules/chat/message-list.js +0 -605
  88. package/lib-es/modules/chat/mock.js +0 -276
  89. package/lib-es/modules/chat/store.js +0 -1094
  90. package/lib-es/modules/chat/util.js +0 -62
  91. package/lib-es/modules/chat/view.js +0 -406
  92. package/lib-es/modules/layout/bottom-drawer/index.css +0 -34
  93. package/lib-es/modules/layout/bottom-drawer/index.js +0 -110
  94. package/lib-es/modules/layout/components/Layout.js +0 -76
  95. package/lib-es/modules/layout/components/equip-request-popup/index.css +0 -30
  96. package/lib-es/modules/layout/components/equip-request-popup/index.js +0 -71
  97. package/lib-es/modules/layout/components/index.css +0 -78
  98. package/lib-es/modules/layout/components/index.js +0 -2
  99. package/lib-es/modules/layout/context.js +0 -2
  100. package/lib-es/modules/layout/drawer-header/index.css +0 -27
  101. package/lib-es/modules/layout/drawer-header/index.js +0 -46
  102. package/lib-es/modules/layout/index.css +0 -22
  103. package/lib-es/modules/layout/index.js +0 -39
  104. package/lib-es/modules/layout/store.js +0 -372
  105. package/lib-es/modules/layout/type.js +0 -47
  106. package/lib-es/modules/layout/view.js +0 -3
  107. package/lib-es/modules/member-layout/context.js +0 -2
  108. package/lib-es/modules/member-layout/data.js +0 -316
  109. package/lib-es/modules/member-layout/grid/index.css +0 -98
  110. package/lib-es/modules/member-layout/grid/index.js +0 -299
  111. package/lib-es/modules/member-layout/index.css +0 -88
  112. package/lib-es/modules/member-layout/index.js +0 -37
  113. package/lib-es/modules/member-layout/share-toast/index.css +0 -30
  114. package/lib-es/modules/member-layout/share-toast/index.js +0 -35
  115. package/lib-es/modules/member-layout/speaker/index.css +0 -30
  116. package/lib-es/modules/member-layout/speaker/index.js +0 -20
  117. package/lib-es/modules/member-layout/store.js +0 -521
  118. package/lib-es/modules/member-layout/user/index.css +0 -125
  119. package/lib-es/modules/member-layout/user/index.js +0 -351
  120. package/lib-es/modules/member-layout/user/types.js +0 -1
  121. package/lib-es/modules/member-layout/view.js +0 -203
  122. package/lib-es/modules/state-bar/context.js +0 -2
  123. package/lib-es/modules/state-bar/index.css +0 -79
  124. package/lib-es/modules/state-bar/index.js +0 -47
  125. package/lib-es/modules/state-bar/leaving-room/index.css +0 -14
  126. package/lib-es/modules/state-bar/leaving-room/index.js +0 -31
  127. package/lib-es/modules/state-bar/meeting-detail/index.css +0 -72
  128. package/lib-es/modules/state-bar/meeting-detail/index.js +0 -51
  129. package/lib-es/modules/state-bar/meeting-detail/meeting-info/copy.js +0 -74
  130. package/lib-es/modules/state-bar/meeting-detail/meeting-info/index.css +0 -92
  131. package/lib-es/modules/state-bar/meeting-detail/meeting-info/index.js +0 -176
  132. package/lib-es/modules/state-bar/meeting-detail/net-quality/index.css +0 -27
  133. package/lib-es/modules/state-bar/meeting-detail/net-quality/index.js +0 -81
  134. package/lib-es/modules/state-bar/store.js +0 -543
  135. package/lib-es/modules/state-bar/view.js +0 -212
  136. package/lib-es/modules/whiteboard/app.js +0 -33
  137. package/lib-es/modules/whiteboard/components/control-bar/index.css +0 -53
  138. package/lib-es/modules/whiteboard/components/control-bar/index.js +0 -148
  139. package/lib-es/modules/whiteboard/components/control-bar/store.js +0 -280
  140. package/lib-es/modules/whiteboard/components/loading/index.css +0 -76
  141. package/lib-es/modules/whiteboard/components/loading/index.js +0 -60
  142. package/lib-es/modules/whiteboard/components/loading/loading.png +0 -0
  143. package/lib-es/modules/whiteboard/components/multi-window/index.css +0 -65
  144. package/lib-es/modules/whiteboard/components/multi-window/index.js +0 -31
  145. package/lib-es/modules/whiteboard/components/pagination/index.css +0 -228
  146. package/lib-es/modules/whiteboard/components/pagination/index.js +0 -155
  147. package/lib-es/modules/whiteboard/components/pagination/store.js +0 -10
  148. package/lib-es/modules/whiteboard/components/progress/index.js +0 -36
  149. package/lib-es/modules/whiteboard/components/progress/style.css +0 -52
  150. package/lib-es/modules/whiteboard/components/scene-pagination.js +0 -23
  151. package/lib-es/modules/whiteboard/components/switch-theme/index.css +0 -98
  152. package/lib-es/modules/whiteboard/components/switch-theme/index.js +0 -79
  153. package/lib-es/modules/whiteboard/components/switch-theme/item.js +0 -46
  154. package/lib-es/modules/whiteboard/components/switch-theme/libs.js +0 -22
  155. package/lib-es/modules/whiteboard/components/toolbar/ style.css +0 -588
  156. package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +0 -30
  157. package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +0 -100
  158. package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +0 -51
  159. package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/index.js +0 -38
  160. package/lib-es/modules/whiteboard/components/toolbar/components/eraser-picker.js +0 -81
  161. package/lib-es/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +0 -46
  162. package/lib-es/modules/whiteboard/components/toolbar/components/history.js +0 -39
  163. package/lib-es/modules/whiteboard/components/toolbar/components/icons/fold-icon.js +0 -32
  164. package/lib-es/modules/whiteboard/components/toolbar/components/icons/move-icon.js +0 -59
  165. package/lib-es/modules/whiteboard/components/toolbar/components/move-handle.js +0 -125
  166. package/lib-es/modules/whiteboard/components/toolbar/components/pen-picker.js +0 -97
  167. package/lib-es/modules/whiteboard/components/toolbar/components/shape-picker.js +0 -158
  168. package/lib-es/modules/whiteboard/components/toolbar/hooks/index.js +0 -201
  169. package/lib-es/modules/whiteboard/components/toolbar/index.js +0 -164
  170. package/lib-es/modules/whiteboard/components/toolbar/store.js +0 -243
  171. package/lib-es/modules/whiteboard/context.js +0 -28
  172. package/lib-es/modules/whiteboard/index.js +0 -1128
  173. package/lib-es/modules/whiteboard/style.css +0 -143
  174. package/lib-es/modules/whiteboard/type.js +0 -59
  175. package/lib-es/modules/whiteboard/utils.js +0 -29
  176. package/lib-es/plugins/browser-runtime-plugin.js +0 -106
  177. package/lib-es/plugins/css-preset-plugin.js +0 -27
  178. package/lib-es/plugins/module-dev-plugin.js +0 -184
  179. package/lib-es/plugins/multi-lang-plugin.js +0 -18
  180. package/lib-es/plugins/rtm-plugin.js +0 -3
  181. package/lib-es/plugins/web-rtc-plugin.js +0 -3
  182. package/lib-es/runtime.d.ts +0 -94
  183. package/lib-es/translations/enUS.js +0 -2075
  184. package/lib-es/translations/zhCN.js +0 -2073
  185. package/lib-es/type.js +0 -36
  186. package/lib-es/ui-manager.js +0 -465
  187. package/lib-es/ui-scene.js +0 -116
  188. package/lib-es/utilities/board-context.js +0 -5
  189. package/lib-es/utilities/constant.js +0 -298
  190. package/lib-es/utilities/copyText.js +0 -36
  191. package/lib-es/utilities/extract.js +0 -109
  192. package/lib-es/utilities/hooks.js +0 -82
  193. package/lib-es/utilities/lang.js +0 -6
  194. package/lib-es/utilities/logger.js +0 -32
  195. package/lib-es/utilities/meeting-detail-message.js +0 -49
  196. package/lib-es/utilities/mute-action.js +0 -41
  197. package/lib-es/utilities/package-info.js +0 -7
  198. package/lib-es/utilities/parameters.js +0 -13
  199. package/lib-es/utilities/regex.js +0 -7
  200. package/lib-es/utilities/tools.js +0 -171
  201. 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<void>;
99
- setAllowWriteBoard(state: FcrSharePermissionState): Promise<void>;
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<void>;
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.AUTO,
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<void>;
138
- setAllowScreenShare(): Promise<void>;
137
+ setAllowBoardWrite(): Promise<number>;
138
+ setAllowScreenShare(): Promise<number>;
139
139
  closeBoard(): void;
140
140
  assignHost(user: FcrUserInfo): void;
141
141
  leave(): void;
@@ -613,8 +613,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
613
613
  height: 720
614
614
  },
615
615
  bitrate: 1200,
616
- frameRate: 15,
617
- isMirror: false
616
+ frameRate: 15
618
617
  },
619
618
  retryTimeout: 60
620
619
  });
@@ -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("../../utilities/copyText");
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");
@@ -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("../../utilities/copyText");
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("../../../../utilities/copyText");
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 _meetingDetailMessage = require("../../../../utilities/meeting-detail-message");
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, _meetingDetailMessage.generateMeetingDetail)((localUser === null || localUser === void 0 ? void 0 : localUser.userName) || '', (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomName) || '', (0, _meetingDetailMessage.generateMeetingDuration)((scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.startTime) || 0, (scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.duration) || 0), shareLink, meetingId || (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomId) || '', (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.password) || '');
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.jsxs)("div", {
68
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
71
69
  className: "fcr-top-action-center-lasttime",
72
- children: [meetingTime, "(", totalHourText, totalMinuteText, ")"]
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
- window.__DEV_ENGINE_IS_READY__ = createRoom(roomId).then(/*#__PURE__*/function () {
109
- var _ref3 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(roomId) {
110
- return _regenerator["default"].wrap(function (_context3) {
111
- while (1) switch (_context3.prev = _context3.next) {
112
- case 0:
113
- return _context3.abrupt("return", getUserToken(roomId, userId, userId, role).then(function (_ref4) {
114
- var token = _ref4.token,
115
- appId = _ref4.appId;
116
- window.__DEV_ENGINE__ = new _fcrCore.FcrCoreEngine({
117
- appId: appId,
118
- token: token,
119
- region: _fcrCore.FcrRegion.CN,
120
- userId: userId,
121
- dualCameraVideoStreamConfig: {
122
- highVideoEncoderConfig: {
123
- dimensions: {
124
- width: 640,
125
- height: 480
126
- },
127
- frameRate: 15,
128
- bitrate: 800
129
- // isMirror: false,
130
- },
131
- lowVideoEncoderConfig: {
132
- dimensions: {
133
- width: 320,
134
- height: 240
135
- },
136
- frameRate: 15,
137
- bitrate: 400
138
- // isMirror: false,
139
- },
140
- enableDualStreamMode: false
141
- },
142
- dualScreenVideoStreamConfig: {
143
- highVideoEncoderConfig: {
144
- dimensions: {
145
- width: 640,
146
- height: 480
147
- },
148
- frameRate: 15,
149
- bitrate: 800
150
- // isMirror: false,
151
- },
152
- lowVideoEncoderConfig: {
153
- dimensions: {
154
- width: 320,
155
- height: 240
156
- },
157
- frameRate: 15,
158
- bitrate: 400
159
- // isMirror: false,
160
- },
161
- enableDualStreamMode: false
162
- },
163
- parameters: {
164
- rte: {
165
- rteIpList: ['http://api-solutions-dev.bj2.agoralab.co']
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
+ // });