@tencentcloud/tuiroom-engine-electron 1.4.4 → 1.4.5
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 +2 -2
- package/index.esm.js +2 -2
- package/index.js +2 -2
- package/package.json +3 -3
- package/types.d.ts +9 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tencentcloud/tuiroom-engine-electron",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.5",
|
|
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": "11.3.502-beta.
|
|
24
|
-
"tsignaling": "^1.0.
|
|
23
|
+
"trtc-electron-sdk": "11.3.502-beta.5",
|
|
24
|
+
"tsignaling": "^1.0.7"
|
|
25
25
|
}
|
|
26
26
|
}
|
package/types.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export declare enum TUIErrorCode {
|
|
|
46
46
|
ERR_SEND_MESSAGE_DISABLED_FOR_ALL = -2380,
|
|
47
47
|
ERR_SEND_MESSAGE_DISABLED_FOR_CURRENT = -2381
|
|
48
48
|
}
|
|
49
|
-
export
|
|
49
|
+
export type TUIRoomInfo = {
|
|
50
50
|
roomId: string;
|
|
51
51
|
roomName: string;
|
|
52
52
|
roomType: TUIRoomType;
|
|
@@ -59,13 +59,13 @@ export declare type TUIRoomInfo = {
|
|
|
59
59
|
createTime: number;
|
|
60
60
|
roomMemberCount: number;
|
|
61
61
|
};
|
|
62
|
-
export
|
|
62
|
+
export type TUILoginUserInfo = {
|
|
63
63
|
userId: string;
|
|
64
64
|
userName: string;
|
|
65
65
|
avatarUrl: string;
|
|
66
66
|
customInfo: Record<string, any>;
|
|
67
67
|
};
|
|
68
|
-
export
|
|
68
|
+
export type TUISeatLockParams = {
|
|
69
69
|
lockSeat: boolean;
|
|
70
70
|
lockVideo: boolean;
|
|
71
71
|
lockAudio: boolean;
|
|
@@ -85,7 +85,7 @@ export declare enum TUIRole {
|
|
|
85
85
|
* @property {boolean} userName 用户名称
|
|
86
86
|
* @property {boolean} avatarUrl 用户头像地址
|
|
87
87
|
*/
|
|
88
|
-
export
|
|
88
|
+
export type TUIMessage = {
|
|
89
89
|
messageId: string;
|
|
90
90
|
message: string;
|
|
91
91
|
timestamp: number;
|
|
@@ -127,7 +127,7 @@ export declare enum TUINetworkQuality {
|
|
|
127
127
|
* @property {TUIRole} downLoss 下行丢包率,单位 (%) 该数值越小越好,目前仅本地用户有该信息
|
|
128
128
|
* @property {Number} delay 网络延迟,单位 ms,目前仅本地用户有该信息
|
|
129
129
|
*/
|
|
130
|
-
export
|
|
130
|
+
export type TUINetwork = {
|
|
131
131
|
userId: string;
|
|
132
132
|
quality: TUINetworkQuality;
|
|
133
133
|
upLoss: number;
|
|
@@ -182,7 +182,7 @@ export declare enum TRTCRole {
|
|
|
182
182
|
kAnchor = 0,
|
|
183
183
|
kAudience = 1
|
|
184
184
|
}
|
|
185
|
-
export
|
|
185
|
+
export type TUIUserInfo = {
|
|
186
186
|
userId: string;
|
|
187
187
|
userName: string;
|
|
188
188
|
avatarUrl: string;
|
|
@@ -192,21 +192,21 @@ export declare type TUIUserInfo = {
|
|
|
192
192
|
hasScreenStream: boolean;
|
|
193
193
|
roomCustomInfo: Record<string, any>;
|
|
194
194
|
};
|
|
195
|
-
export
|
|
195
|
+
export type TUISeatInfo = {
|
|
196
196
|
index: number;
|
|
197
197
|
userId: string;
|
|
198
198
|
locked: boolean;
|
|
199
199
|
isVideoLocked: boolean;
|
|
200
200
|
isAudioLocked: boolean;
|
|
201
201
|
};
|
|
202
|
-
export
|
|
202
|
+
export type TUIRequest = {
|
|
203
203
|
requestAction: TUIRequestAction;
|
|
204
204
|
timestamp: number;
|
|
205
205
|
requestId: string;
|
|
206
206
|
userId: string;
|
|
207
207
|
content: string;
|
|
208
208
|
};
|
|
209
|
-
export
|
|
209
|
+
export type TUIRequestCallback = {
|
|
210
210
|
requestCallbackType: TUIRequestCallbackType;
|
|
211
211
|
requestId: string;
|
|
212
212
|
userId: string;
|