@tencentcloud/tuiroom-engine-electron 1.2.1 → 1.4.0-bate.0
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/index.cjs.js +4 -4
- package/index.d.ts +30 -8
- package/index.esm.js +4 -4
- package/index.js +4 -4
- package/package.json +3 -3
- package/types.d.ts +44 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tencentcloud/tuiroom-engine-electron",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0-bate.0",
|
|
4
4
|
"description": "TUIRoomEngine Electron SDK",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"rtc-detect": "^0.0.5",
|
|
22
22
|
"tim-js-sdk": "^2.27.0",
|
|
23
|
-
"trtc-electron-sdk": "
|
|
24
|
-
"tsignaling": "^1.0.
|
|
23
|
+
"trtc-electron-sdk": "11.0.118-beta.0",
|
|
24
|
+
"tsignaling": "^1.0.6"
|
|
25
25
|
}
|
|
26
26
|
}
|
package/types.d.ts
CHANGED
|
@@ -1,22 +1,50 @@
|
|
|
1
1
|
export declare enum TUIErrorCode {
|
|
2
2
|
ERR_SUCC = 0,
|
|
3
3
|
ERR_FAILED = -1,
|
|
4
|
+
ERR_FREQ_LIMIT = -2,
|
|
5
|
+
ERR_SDKAPPID_NOT_FOUND = -1000,
|
|
4
6
|
ERR_INVALID_PARAMETER = -1001,
|
|
5
7
|
ERR_SDK_NOT_INITIALIZED = -1002,
|
|
6
8
|
ERR_PERMISSION_DENIED = -1003,
|
|
7
9
|
ERR_REQUIRE_PAYMENT = -1004,
|
|
8
10
|
ERR_CAMERA_START_FAILED = -1100,
|
|
9
|
-
ERR_CAMERA_NOT_AUTHORIZED = 1101,
|
|
10
|
-
|
|
11
|
-
ERR_CAMERA_DEVICE_EMPTY = 1103,
|
|
12
|
-
ERR_MICROPHONE_START_FAILED = 1104,
|
|
13
|
-
ERR_MICROPHONE_NOT_AUTHORIZED = 1105,
|
|
14
|
-
|
|
15
|
-
ERR_MICROPHONE_DEVICE_EMPTY = 1107,
|
|
16
|
-
ERR_GET_SCREEN_SHARING_TARGET_FAILED = 1108,
|
|
17
|
-
ERR_START_SCREEN_SHARING_FAILED = 1109,
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
ERR_CAMERA_NOT_AUTHORIZED = -1101,
|
|
12
|
+
ERR_CAMERA_OCCUPIED = -1102,
|
|
13
|
+
ERR_CAMERA_DEVICE_EMPTY = -1103,
|
|
14
|
+
ERR_MICROPHONE_START_FAILED = -1104,
|
|
15
|
+
ERR_MICROPHONE_NOT_AUTHORIZED = -1105,
|
|
16
|
+
ERR_MICROPHONE_OCCUPIED = -1106,
|
|
17
|
+
ERR_MICROPHONE_DEVICE_EMPTY = -1107,
|
|
18
|
+
ERR_GET_SCREEN_SHARING_TARGET_FAILED = -1108,
|
|
19
|
+
ERR_START_SCREEN_SHARING_FAILED = -1109,
|
|
20
|
+
ERR_ROOM_ID_NOT_EXIST = -2100,
|
|
21
|
+
ERR_OPERATION_INVALID_BEFORE_ENTER_ROOM = -2101,
|
|
22
|
+
ERR_EXIT_NOT_SUPPORTED_FOR_ROOM_OWNER = -2102,
|
|
23
|
+
ERR_OPERATION_NOT_SUPPORTED_IN_CURRENT_ROOM_TYPE = -2103,
|
|
24
|
+
ERR_OPERATION_NOT_SUPPORTED_IN_CURRENT_SPEECH_MODE = -2104,
|
|
25
|
+
ERR_ROOM_ID_INVALID = -2105,
|
|
26
|
+
ERR_ROOM_ID_OCCUPIED = -2106,
|
|
27
|
+
ERR_ROOM_NAME_INVALID = -2107,
|
|
28
|
+
ERR_ALREADY_IN_OTHER_ROOM = -2108,
|
|
29
|
+
ERR_USER_NOT_EXIST = -2200,
|
|
30
|
+
ERR_USER_NOT_ENTERED = -2201,
|
|
31
|
+
ERR_NEED_OWNER_PERMISSION = -2300,
|
|
32
|
+
ERR_NEED_ADMIN_PERMISSION = -2301,
|
|
33
|
+
ERR_REQUEST_NO_PERMISSION = -2310,
|
|
34
|
+
ERR_REQUEST_ID_INVALID = -2311,
|
|
35
|
+
ERR_MAX_SEAT_COUNT_LIMIT = -2340,
|
|
36
|
+
ERR_ALREADY_IN_SEAT = -2341,
|
|
37
|
+
ERR_SEAT_OCCUPIED = -2342,
|
|
38
|
+
ERR_SEAT_LOCKED = -2343,
|
|
39
|
+
ERR_SEAT_INDEX_NOT_EXIST = -2344,
|
|
40
|
+
ERR_USER_NOT_IN_SEAT = -2345,
|
|
41
|
+
ERR_ALL_SEAT_OCCUPIED = -2346,
|
|
42
|
+
ERR_OPEN_MICROPHONE_NEED_SEAT_UNLOCK = -2360,
|
|
43
|
+
ERR_OPEN_MICROPHONE_NEED_PERMISSION_FROM_ADMIN = -2361,
|
|
44
|
+
ERR_OPEN_CAMERA_NEED_SEAT_UNLOCK = -2370,
|
|
45
|
+
ERR_OPEN_CAMERA_NEED_PERMISSION_FROM_ADMIN = -2371,
|
|
46
|
+
ERR_SEND_MESSAGE_DISABLED_FOR_ALL = -2380,
|
|
47
|
+
ERR_SEND_MESSAGE_DISABLED_FOR_CURRENT = -2381
|
|
20
48
|
}
|
|
21
49
|
export type TUIRoomInfo = {
|
|
22
50
|
roomId: string;
|
|
@@ -27,8 +55,6 @@ export type TUIRoomInfo = {
|
|
|
27
55
|
isCameraDisableForAllUser: boolean;
|
|
28
56
|
isMessageDisableForAllUser: boolean;
|
|
29
57
|
maxSeatCount: number;
|
|
30
|
-
enableCDNStreaming: boolean;
|
|
31
|
-
cdnStreamDomain: string;
|
|
32
58
|
roomOwner: string;
|
|
33
59
|
createTime: number;
|
|
34
60
|
roomMemberCount: number;
|
|
@@ -37,6 +63,7 @@ export type TUILoginUserInfo = {
|
|
|
37
63
|
userId: string;
|
|
38
64
|
userName: string;
|
|
39
65
|
avatarUrl: string;
|
|
66
|
+
customInfo: Record<string, any>;
|
|
40
67
|
};
|
|
41
68
|
export type TUISeatLockParams = {
|
|
42
69
|
lockSeat: boolean;
|
|
@@ -142,6 +169,7 @@ export type TUIUserInfo = {
|
|
|
142
169
|
hasAudioStream: boolean;
|
|
143
170
|
hasVideoStream: boolean;
|
|
144
171
|
hasScreenStream: boolean;
|
|
172
|
+
roomCustomInfo: Record<string, any>;
|
|
145
173
|
};
|
|
146
174
|
export type TUISeatInfo = {
|
|
147
175
|
index: number;
|
|
@@ -531,14 +559,13 @@ export declare enum TUIRoomEvents {
|
|
|
531
559
|
*/
|
|
532
560
|
onDeviceChange = "onDeviceChange",
|
|
533
561
|
/**
|
|
534
|
-
* @description
|
|
562
|
+
* @description 屏幕分享停止事件,当用户使用浏览器自带的【停止分享】按钮结束屏幕共享时,该用户会收到 'onUserScreenCaptureStopped' 事件用来修改屏幕共享状态。
|
|
535
563
|
* @default 'onUserScreenCaptureStopped'
|
|
536
564
|
* @event TUIRoomEvents#onUserScreenCaptureStopped
|
|
537
|
-
* @param {number} options.reason 屏幕分享停止原因,0:表示用户主动停止;1:表示屏幕分享窗口被关闭
|
|
538
565
|
* @example
|
|
539
566
|
* const roomEngine = new TUIRoomEngine();
|
|
540
|
-
* roomEngine.on(TUIRoomEvents.onUserScreenCaptureStopped, (
|
|
541
|
-
* console.log('roomEngine.onUserScreenCaptureStopped'
|
|
567
|
+
* roomEngine.on(TUIRoomEvents.onUserScreenCaptureStopped, () => {
|
|
568
|
+
* console.log('roomEngine.onUserScreenCaptureStopped');
|
|
542
569
|
* });
|
|
543
570
|
*/
|
|
544
571
|
onUserScreenCaptureStopped = "onUserScreenCaptureStopped"
|