fcr-core 3.11.0-rc.5 → 3.11.0-rc.7
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/media-control/type.d.ts +2 -1
- package/lib/peer-session/index.js +4 -0
- package/lib/remote-control/index.js +5 -1
- package/lib/room-control/ability-control/type.d.ts +1 -0
- package/lib/room-control/ability-control/type.js +1 -0
- package/lib/room-control/privilege-control/type.d.ts +2 -0
- package/lib/room-control/privilege-control/type.js +2 -0
- package/lib/room-control/whiteboard-control-v1/board-window.d.ts +1 -1
- package/lib/room-control/whiteboard-control-v2/annotation-control/control.d.ts +2 -2
- package/lib-es/peer-session/index.js +4 -0
- package/lib-es/remote-control/index.js +4 -0
- package/lib-es/room-control/ability-control/type.js +1 -0
- package/lib-es/room-control/privilege-control/type.js +2 -0
- package/package.json +7 -7
|
@@ -404,8 +404,9 @@ export interface FcrMicrophoneTrack {
|
|
|
404
404
|
/**
|
|
405
405
|
* Starts the microphone test for the specified device.
|
|
406
406
|
* @param interval The interval for the microphone test.
|
|
407
|
+
* @param enablePlayback Whether to enable playback during the test.
|
|
407
408
|
*/
|
|
408
|
-
startTest(interval: number): number;
|
|
409
|
+
startTest(interval: number, enablePlayback?: boolean): number;
|
|
409
410
|
/**
|
|
410
411
|
* Stops the microphone test for the specified device.
|
|
411
412
|
*/
|
|
@@ -319,6 +319,10 @@ class FcrPeerSessionControlImpl {
|
|
|
319
319
|
const _ref2 = payload,
|
|
320
320
|
data = _ref2.data,
|
|
321
321
|
cmd = _ref2.cmd;
|
|
322
|
+
if (cmd !== '1001' && cmd !== '1002' || !data || typeof data.sessionKey !== 'string' || typeof data.sessionUuid !== 'string') {
|
|
323
|
+
this.logger.info("[PeerSession] ignore non peer-session message: cmd=".concat(String(cmd), ", senderId=").concat(senderId, ", payload=").concat(JSON.stringify(payload)));
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
322
326
|
const logContext = "cmd=".concat(cmd, ", sessionKey=").concat(data.sessionKey, ", sessionId=").concat(data.sessionUuid, ", ") + "action=".concat(String(data.action), ", senderId=").concat(senderId, ", keepAlive=").concat(!!data.keepAlive);
|
|
323
327
|
this.logger.info("[PeerSession] received peer message: ".concat(logContext, ", payload=").concat(JSON.stringify((_data$payload = data.payload) !== null && _data$payload !== void 0 ? _data$payload : {})));
|
|
324
328
|
if (cmd === '1001') {
|
|
@@ -28,9 +28,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
28
28
|
value: true
|
|
29
29
|
});
|
|
30
30
|
exports.KEEPALIVE_TIMEOUT_MULTIPLIER = exports.FcrRemoteControlImpl = void 0;
|
|
31
|
-
require("core-js/modules/es.json.stringify.js");
|
|
32
31
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
33
32
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
33
|
+
require("core-js/modules/es.json.stringify.js");
|
|
34
34
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
35
35
|
var _type = require("./type");
|
|
36
36
|
var _imports = require("../imports");
|
|
@@ -85,6 +85,10 @@ class FcrRemoteControlImpl {
|
|
|
85
85
|
const _ref2 = payload,
|
|
86
86
|
data = _ref2.data,
|
|
87
87
|
cmd = _ref2.cmd;
|
|
88
|
+
if (cmd !== '1001' && cmd !== '1002' || !data || typeof data.sessionKey !== 'string' || typeof data.sessionUuid !== 'string') {
|
|
89
|
+
this.logger.info("[RemoteControl] ignore non remote-control message: cmd=".concat(String(cmd), ", senderId=").concat(senderId, ", payload=").concat(JSON.stringify(payload)));
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
88
92
|
const logContext = "cmd=".concat(cmd, ", sessionKey=").concat(data.sessionKey, ", sessionId=").concat(data.sessionUuid, ", ") + "action=".concat(String(data.action), ", senderId=").concat(senderId, ", keepAlive=").concat(!!data.keepAlive);
|
|
89
93
|
if (data.sessionKey !== this._remoteControlSessionKey) {
|
|
90
94
|
this.logger.info("[RemoteControl] ignore peer message because sessionKey does not match remote-control: ".concat(logContext));
|
|
@@ -8,6 +8,7 @@ export declare enum FcrAbility {
|
|
|
8
8
|
Caption = "caption",
|
|
9
9
|
Transcribe = "transcribe",
|
|
10
10
|
Recording = "recording",
|
|
11
|
+
ClientRecording = "clientRecording",
|
|
11
12
|
Board = "board",
|
|
12
13
|
SettingVirtualBackground = "setting:virtualBackground",
|
|
13
14
|
SettingBeautyMode = "setting:beautyMode",
|
|
@@ -13,6 +13,7 @@ let FcrAbility = exports.FcrAbility = /*#__PURE__*/function (FcrAbility) {
|
|
|
13
13
|
FcrAbility["Caption"] = "caption";
|
|
14
14
|
FcrAbility["Transcribe"] = "transcribe";
|
|
15
15
|
FcrAbility["Recording"] = "recording";
|
|
16
|
+
FcrAbility["ClientRecording"] = "clientRecording";
|
|
16
17
|
FcrAbility["Board"] = "board";
|
|
17
18
|
FcrAbility["SettingVirtualBackground"] = "setting:virtualBackground";
|
|
18
19
|
FcrAbility["SettingBeautyMode"] = "setting:beautyMode";
|
|
@@ -370,6 +370,8 @@ export declare enum FcrPermissionAction {
|
|
|
370
370
|
RecordPauseCloudRecording = "record:pauseCloudRecording",
|
|
371
371
|
RecordResumeCloudRecording = "record:resumeCloudRecording",
|
|
372
372
|
RecordStartClientRecording = "record:startClientRecording",
|
|
373
|
+
RecordAllowStartClientRecording = "record:allowStartClientRecording",
|
|
374
|
+
RecordDisallowStartClientRecording = "record:disallowStartClientRecording",
|
|
373
375
|
RecordStopClientRecording = "record:stopClientRecording",
|
|
374
376
|
RecordSetClientRecordingPermission = "record:setClientRecordingPermission",
|
|
375
377
|
CallCallIn = "call:callIn",
|
|
@@ -119,6 +119,8 @@ let FcrPermissionAction = exports.FcrPermissionAction = /*#__PURE__*/function (F
|
|
|
119
119
|
FcrPermissionAction["RecordPauseCloudRecording"] = "record:pauseCloudRecording";
|
|
120
120
|
FcrPermissionAction["RecordResumeCloudRecording"] = "record:resumeCloudRecording";
|
|
121
121
|
FcrPermissionAction["RecordStartClientRecording"] = "record:startClientRecording";
|
|
122
|
+
FcrPermissionAction["RecordAllowStartClientRecording"] = "record:allowStartClientRecording";
|
|
123
|
+
FcrPermissionAction["RecordDisallowStartClientRecording"] = "record:disallowStartClientRecording";
|
|
122
124
|
FcrPermissionAction["RecordStopClientRecording"] = "record:stopClientRecording";
|
|
123
125
|
FcrPermissionAction["RecordSetClientRecordingPermission"] = "record:setClientRecordingPermission";
|
|
124
126
|
FcrPermissionAction["CallCallIn"] = "call:callIn";
|
|
@@ -7,7 +7,7 @@ import { FcrReturnCode } from '../../type';
|
|
|
7
7
|
import { FcrBoardEraserSize, FcrBoardMainWindow_V1, FcrBoardPage, FcrBoardWindowObserver } from './type';
|
|
8
8
|
import { FcrColor } from '../whiteboard-control/type';
|
|
9
9
|
export declare class FcrBoardMainWindowImpl implements FcrBoardMainWindow_V1 {
|
|
10
|
-
protected logger: import("agora-
|
|
10
|
+
protected logger: import("agora-foundation/lib/logger/type").Logger;
|
|
11
11
|
private _whiteBoardroom;
|
|
12
12
|
private _whiteView;
|
|
13
13
|
private _windowManager?;
|
|
@@ -9,7 +9,7 @@ export declare class FcrAnnotationControlImpl extends FcrBaseWhiteboardControlIm
|
|
|
9
9
|
protected config: FcrAnnotationConfig;
|
|
10
10
|
private _sceneConfig;
|
|
11
11
|
private _api;
|
|
12
|
-
protected logger: import("agora-
|
|
12
|
+
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
13
13
|
constructor(rtmClient: RTMClient, config: FcrAnnotationConfig, forgeInitConfigFetcher: () => Promise<FcrBoardRoomConfig>, _sceneConfig: FcrAnnotationSceneConfig, _api: FcrCoreServiceApi);
|
|
14
14
|
syncScreenShareOwnerAnnotationOpenDone(): Promise<number>;
|
|
15
15
|
syncWhiteboardWriteCount(isWritable: boolean): Promise<number>;
|
|
@@ -21,7 +21,7 @@ export declare class FcrStandaloneAnnotationControlImpl extends FcrBaseWhiteboar
|
|
|
21
21
|
protected rtmClient: RTMClient;
|
|
22
22
|
protected config: FcrAnnotationConfig;
|
|
23
23
|
private _sceneConfig;
|
|
24
|
-
protected logger: import("agora-
|
|
24
|
+
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
25
25
|
constructor(rtmClient: RTMClient, config: FcrAnnotationConfig, forgeInitConfigFetcher: () => Promise<FcrBoardRoomConfig>, _sceneConfig: Omit<FcrAnnotationSceneConfig, 'getBoardPerformance' | 'sceneId'>);
|
|
26
26
|
open(): Promise<FcrBoardMainWindow>;
|
|
27
27
|
protected getApplicationId(): string;
|
|
@@ -313,6 +313,10 @@ export class FcrPeerSessionControlImpl {
|
|
|
313
313
|
const _ref2 = payload,
|
|
314
314
|
data = _ref2.data,
|
|
315
315
|
cmd = _ref2.cmd;
|
|
316
|
+
if (cmd !== '1001' && cmd !== '1002' || !data || typeof data.sessionKey !== 'string' || typeof data.sessionUuid !== 'string') {
|
|
317
|
+
this.logger.info("[PeerSession] ignore non peer-session message: cmd=".concat(String(cmd), ", senderId=").concat(senderId, ", payload=").concat(JSON.stringify(payload)));
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
316
320
|
const logContext = "cmd=".concat(cmd, ", sessionKey=").concat(data.sessionKey, ", sessionId=").concat(data.sessionUuid, ", ") + "action=".concat(String(data.action), ", senderId=").concat(senderId, ", keepAlive=").concat(!!data.keepAlive);
|
|
317
321
|
this.logger.info("[PeerSession] received peer message: ".concat(logContext, ", payload=").concat(JSON.stringify((_data$payload = data.payload) !== null && _data$payload !== void 0 ? _data$payload : {})));
|
|
318
322
|
if (cmd === '1001') {
|
|
@@ -79,6 +79,10 @@ export class FcrRemoteControlImpl {
|
|
|
79
79
|
const _ref2 = payload,
|
|
80
80
|
data = _ref2.data,
|
|
81
81
|
cmd = _ref2.cmd;
|
|
82
|
+
if (cmd !== '1001' && cmd !== '1002' || !data || typeof data.sessionKey !== 'string' || typeof data.sessionUuid !== 'string') {
|
|
83
|
+
this.logger.info("[RemoteControl] ignore non remote-control message: cmd=".concat(String(cmd), ", senderId=").concat(senderId, ", payload=").concat(JSON.stringify(payload)));
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
82
86
|
const logContext = "cmd=".concat(cmd, ", sessionKey=").concat(data.sessionKey, ", sessionId=").concat(data.sessionUuid, ", ") + "action=".concat(String(data.action), ", senderId=").concat(senderId, ", keepAlive=").concat(!!data.keepAlive);
|
|
83
87
|
if (data.sessionKey !== this._remoteControlSessionKey) {
|
|
84
88
|
this.logger.info("[RemoteControl] ignore peer message because sessionKey does not match remote-control: ".concat(logContext));
|
|
@@ -7,6 +7,7 @@ export let FcrAbility = /*#__PURE__*/function (FcrAbility) {
|
|
|
7
7
|
FcrAbility["Caption"] = "caption";
|
|
8
8
|
FcrAbility["Transcribe"] = "transcribe";
|
|
9
9
|
FcrAbility["Recording"] = "recording";
|
|
10
|
+
FcrAbility["ClientRecording"] = "clientRecording";
|
|
10
11
|
FcrAbility["Board"] = "board";
|
|
11
12
|
FcrAbility["SettingVirtualBackground"] = "setting:virtualBackground";
|
|
12
13
|
FcrAbility["SettingBeautyMode"] = "setting:beautyMode";
|
|
@@ -113,6 +113,8 @@ export let FcrPermissionAction = /*#__PURE__*/function (FcrPermissionAction) {
|
|
|
113
113
|
FcrPermissionAction["RecordPauseCloudRecording"] = "record:pauseCloudRecording";
|
|
114
114
|
FcrPermissionAction["RecordResumeCloudRecording"] = "record:resumeCloudRecording";
|
|
115
115
|
FcrPermissionAction["RecordStartClientRecording"] = "record:startClientRecording";
|
|
116
|
+
FcrPermissionAction["RecordAllowStartClientRecording"] = "record:allowStartClientRecording";
|
|
117
|
+
FcrPermissionAction["RecordDisallowStartClientRecording"] = "record:disallowStartClientRecording";
|
|
116
118
|
FcrPermissionAction["RecordStopClientRecording"] = "record:stopClientRecording";
|
|
117
119
|
FcrPermissionAction["RecordSetClientRecordingPermission"] = "record:setClientRecordingPermission";
|
|
118
120
|
FcrPermissionAction["CallCallIn"] = "call:callIn";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fcr-core",
|
|
3
3
|
"description": "Core APIs for building online scenes",
|
|
4
|
-
"version": "3.11.0-rc.
|
|
4
|
+
"version": "3.11.0-rc.7",
|
|
5
5
|
"module": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@types/lodash": "^4.14.168",
|
|
43
43
|
"@types/sinon": "^17.0.2",
|
|
44
44
|
"@types/uuid": "^8.3.0",
|
|
45
|
-
"agora-toolchain": "3.11.0-rc.
|
|
45
|
+
"agora-toolchain": "3.11.0-rc.7",
|
|
46
46
|
"core-js": "^3.33.3",
|
|
47
47
|
"decomment": "^0.9.5",
|
|
48
48
|
"husky": "^9.0.11",
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@netless/app-slide": "^0.2.81",
|
|
58
58
|
"@netless/appliance-plugin": "^1.1.21",
|
|
59
|
-
"@netless/forge-room": "1.
|
|
60
|
-
"@netless/forge-rtm": "1.
|
|
61
|
-
"@netless/forge-whiteboard": "1.
|
|
59
|
+
"@netless/forge-room": "1.3.1",
|
|
60
|
+
"@netless/forge-rtm": "1.3.1",
|
|
61
|
+
"@netless/forge-whiteboard": "1.3.1",
|
|
62
62
|
"@netless/video-js-plugin": "^0.3.8",
|
|
63
63
|
"@netless/white-snapshot": "^0.4.2",
|
|
64
64
|
"@netless/window-manager": "^1.0.7-beta.6",
|
|
65
|
-
"agora-foundation": "3.11.0-rc.
|
|
66
|
-
"agora-rte-sdk": "3.11.0-rc.
|
|
65
|
+
"agora-foundation": "3.11.0-rc.7",
|
|
66
|
+
"agora-rte-sdk": "3.11.0-rc.7",
|
|
67
67
|
"await-to-js": "^3.0.0",
|
|
68
68
|
"dayjs": "^1.10.4",
|
|
69
69
|
"easemob-websdk": "4.13.0",
|