@tencentcloud/tuiroom-engine-js 3.5.2 → 3.6.1-beta.1
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.d.ts +20 -92
- package/index.esm.js +2 -2
- package/index.js +2 -2
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -254,10 +254,7 @@ declare enum TUIRequestAction {
|
|
|
254
254
|
kRequestRemoteUserOnSeat = 5,
|
|
255
255
|
kApplyToAdminToOpenLocalCamera = 6,
|
|
256
256
|
kApplyToAdminToOpenLocalMicrophone = 7,
|
|
257
|
-
kApplyToAdminToOpenLocalScreenShare = 8
|
|
258
|
-
kCloseRemoteCamera = 9,
|
|
259
|
-
kCloseRemoteMicrophone = 10,
|
|
260
|
-
kCloseRemoteScreenShare = 11
|
|
257
|
+
kApplyToAdminToOpenLocalScreenShare = 8
|
|
261
258
|
}
|
|
262
259
|
declare enum TUIRequestCallbackType {
|
|
263
260
|
kRequestAccepted = 0,
|
|
@@ -290,11 +287,6 @@ type TUIUserInfo = {
|
|
|
290
287
|
isMessageDisabled: boolean;
|
|
291
288
|
roomCustomInfo: Record<string, any>;
|
|
292
289
|
};
|
|
293
|
-
declare enum TUIUserInfoModifyFlag {
|
|
294
|
-
kNone = 0,
|
|
295
|
-
kUserRole = 1,
|
|
296
|
-
kNameCard = 2
|
|
297
|
-
}
|
|
298
290
|
type TUISeatInfo = {
|
|
299
291
|
index: number;
|
|
300
292
|
userId: string;
|
|
@@ -319,8 +311,6 @@ type TUIRequest = {
|
|
|
319
311
|
nameCard: string;
|
|
320
312
|
avatarUrl: string;
|
|
321
313
|
content: string;
|
|
322
|
-
fromUser: TUIUserInfo;
|
|
323
|
-
toUser: TUIUserInfo;
|
|
324
314
|
};
|
|
325
315
|
type TUIRequestCallback = {
|
|
326
316
|
requestCallbackType: TUIRequestCallbackType;
|
|
@@ -628,11 +618,10 @@ declare enum TUIRoomEvents {
|
|
|
628
618
|
* @event TUIRoomEvents#onUserInfoChanged
|
|
629
619
|
* @param {object} options
|
|
630
620
|
* @param {TUIUserInfo} options.userInfo 用户信息
|
|
631
|
-
* @param {TUIUserInfoModifyFlag} options.modifyFlag 用户信息变更标记位,该字段自 v3.5.1 开始支持
|
|
632
621
|
* @example
|
|
633
622
|
* const roomEngine = new TUIRoomEngine();
|
|
634
|
-
* roomEngine.on(TUIRoomEvents.onUserInfoChanged, ({ userInfo
|
|
635
|
-
* console.log('roomEngine.onUserInfoChanged', userInfo
|
|
623
|
+
* roomEngine.on(TUIRoomEvents.onUserInfoChanged, ({ userInfo }) => {
|
|
624
|
+
* console.log('roomEngine.onUserInfoChanged', userInfo);
|
|
636
625
|
* });
|
|
637
626
|
*/
|
|
638
627
|
onUserInfoChanged = "onUserInfoChanged",
|
|
@@ -972,7 +961,6 @@ declare enum TUIConferenceListManagerEvents {
|
|
|
972
961
|
onConferenceWillStart = "onConferenceWillStart",
|
|
973
962
|
/**
|
|
974
963
|
* @description 会议取消回调
|
|
975
|
-
* @deprecated 该接口自 v3.5.0 版本废弃,请使用 onConferenceDidCancelled'.
|
|
976
964
|
*
|
|
977
965
|
* @param {object} options
|
|
978
966
|
* @param {string} options.roomId 会议Id,即房间 roomId 。
|
|
@@ -987,22 +975,6 @@ declare enum TUIConferenceListManagerEvents {
|
|
|
987
975
|
* })
|
|
988
976
|
*/
|
|
989
977
|
onConferenceCancelled = "onConferenceCancelled",
|
|
990
|
-
/**
|
|
991
|
-
* @description 会议取消回调 代替 onConferenceCancelled
|
|
992
|
-
*
|
|
993
|
-
* @param {object} options
|
|
994
|
-
* @param {TUIConferenceInfo} options.conferenceInfo 会议信息。
|
|
995
|
-
* @param {TUIConferenceCancelReason} options.reason 会议取消原因。
|
|
996
|
-
* @param {TUIUserInfo} options.operateUser 取消会议操作者信息。
|
|
997
|
-
*
|
|
998
|
-
* @example
|
|
999
|
-
* const roomEngine = new TUIRoomEngine();
|
|
1000
|
-
* const conferenceListManager = roomEngine.getConferenceListManager();
|
|
1001
|
-
* conferenceListManager.on(TUIConferenceListManagerEvents.onConferenceDidCancelled, ({ conferenceInfo, reason, operateUser }) => {
|
|
1002
|
-
* console.log('conferenceListManager.onConferenceDidCancelled', conferenceInfo, reason, operateUser);
|
|
1003
|
-
* })
|
|
1004
|
-
*/
|
|
1005
|
-
onConferenceDidCancelled = "onConferenceDidCancelled",
|
|
1006
978
|
/**
|
|
1007
979
|
* @description 会议信息变更回调
|
|
1008
980
|
*
|
|
@@ -1019,7 +991,6 @@ declare enum TUIConferenceListManagerEvents {
|
|
|
1019
991
|
onConferenceInfoChanged = "onConferenceInfoChanged",
|
|
1020
992
|
/**
|
|
1021
993
|
* @description 参会人员变更回调
|
|
1022
|
-
* @deprecated 该接口自 v3.5.0 版本废弃,请使用 onScheduleAttendeesUpdated'.
|
|
1023
994
|
*
|
|
1024
995
|
* @param {object} options
|
|
1025
996
|
* @param {string} options.roomId 会议Id,即房间roomId。
|
|
@@ -1034,25 +1005,8 @@ declare enum TUIConferenceListManagerEvents {
|
|
|
1034
1005
|
* })
|
|
1035
1006
|
*/
|
|
1036
1007
|
onScheduleAttendeesChanged = "onScheduleAttendeesChanged",
|
|
1037
|
-
/**
|
|
1038
|
-
* @description 参会人员变更回调 代替 onScheduleAttendeesChanged
|
|
1039
|
-
*
|
|
1040
|
-
* @param {object} options
|
|
1041
|
-
* @param {TUIConferenceInfo} options.conferenceInfo 会议信息。
|
|
1042
|
-
* @param {Array<TUIUserInfo>} options.leftUsers 离开成员列表。
|
|
1043
|
-
* @param {Array<TUIUserInfo>} options.joinedUsers 新加入成员列表。
|
|
1044
|
-
*
|
|
1045
|
-
* @example
|
|
1046
|
-
* const roomEngine = new TUIRoomEngine();
|
|
1047
|
-
* const conferenceListManager = roomEngine.getConferenceListManager();
|
|
1048
|
-
* conferenceListManager.on(TUIConferenceListManagerEvents.onScheduleAttendeesUpdated, ({ conferenceInfo, leftUsers, joinedUsers }) => {
|
|
1049
|
-
* console.log('conferenceListManager.onScheduleAttendeesUpdated', conferenceInfo, leftUsers, joinedUsers);
|
|
1050
|
-
* })
|
|
1051
|
-
*/
|
|
1052
|
-
onScheduleAttendeesUpdated = "onScheduleAttendeesUpdated",
|
|
1053
1008
|
/**
|
|
1054
1009
|
* @description 会议状态变更回调
|
|
1055
|
-
* @deprecated 该接口自 v3.5.0 版本废弃,请使用 onConferenceStatusUpdated'.
|
|
1056
1010
|
*
|
|
1057
1011
|
* @param {object} options
|
|
1058
1012
|
* @param {string} options.roomId 会议Id,即房间roomId。
|
|
@@ -1065,22 +1019,7 @@ declare enum TUIConferenceListManagerEvents {
|
|
|
1065
1019
|
* console.log('conferenceListManager.onConferenceStatusChanged', roomId, status );
|
|
1066
1020
|
* })
|
|
1067
1021
|
*/
|
|
1068
|
-
onConferenceStatusChanged = "onConferenceStatusChanged"
|
|
1069
|
-
/**
|
|
1070
|
-
* @description 会议状态变更回调
|
|
1071
|
-
*
|
|
1072
|
-
* @param {object} options
|
|
1073
|
-
* @param {TUIConferenceInfo} options.conferenceInfo 会议Id,即房间roomId。
|
|
1074
|
-
* @param {TUIConferenceStatus} options.status 会议状态。
|
|
1075
|
-
*
|
|
1076
|
-
* @example
|
|
1077
|
-
* const roomEngine = new TUIRoomEngine();
|
|
1078
|
-
* const conferenceListManager = roomEngine.getConferenceListManager();
|
|
1079
|
-
* conferenceListManager.on(TUIConferenceListManagerEvents.onConferenceStatusUpdated, ({ conferenceInfo, status }) => {
|
|
1080
|
-
* console.log('conferenceListManager.onConferenceStatusUpdated', conferenceInfo, status );
|
|
1081
|
-
* })
|
|
1082
|
-
*/
|
|
1083
|
-
onConferenceStatusUpdated = "onConferenceStatusUpdated"
|
|
1022
|
+
onConferenceStatusChanged = "onConferenceStatusChanged"
|
|
1084
1023
|
}
|
|
1085
1024
|
/**
|
|
1086
1025
|
* @since v2.6.0
|
|
@@ -1216,15 +1155,15 @@ declare enum TUIConferenceInvitationManagerEvents {
|
|
|
1216
1155
|
* @default 'onInvitationAdded'
|
|
1217
1156
|
* @event TUIConferenceInvitationManagerEvents#onInvitationAdded
|
|
1218
1157
|
* @param {object} options
|
|
1219
|
-
* @param {
|
|
1158
|
+
* @param {TUIRoomInfo} options.roomInfo 会议信息。
|
|
1220
1159
|
* @param {TUIInvitation} options.invitation 邀请信息。
|
|
1221
1160
|
*
|
|
1222
1161
|
*
|
|
1223
1162
|
* @example
|
|
1224
1163
|
* const roomEngine = new TUIRoomEngine();
|
|
1225
1164
|
* const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();
|
|
1226
|
-
* conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onInvitationAdded, ({
|
|
1227
|
-
* console.log('conferenceInvitationManager.onInvitationAdded',
|
|
1165
|
+
* conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onInvitationAdded, ({ roomInfo, invitation }) => {
|
|
1166
|
+
* console.log('conferenceInvitationManager.onInvitationAdded', roomInfo, invitation);
|
|
1228
1167
|
* })
|
|
1229
1168
|
*/
|
|
1230
1169
|
onInvitationAdded = "onInvitationAdded",
|
|
@@ -1233,15 +1172,15 @@ declare enum TUIConferenceInvitationManagerEvents {
|
|
|
1233
1172
|
* @default 'onInvitationRemoved'
|
|
1234
1173
|
* @event TUIConferenceInvitationManagerEvents#onInvitationRemoved
|
|
1235
1174
|
* @param {object} options
|
|
1236
|
-
* @param {
|
|
1175
|
+
* @param {TUIRoomInfo} options.roomInfo 会议信息。
|
|
1237
1176
|
* @param {TUIInvitation} options.invitation 邀请信息。
|
|
1238
1177
|
*
|
|
1239
1178
|
*
|
|
1240
1179
|
* @example
|
|
1241
1180
|
* const roomEngine = new TUIRoomEngine();
|
|
1242
1181
|
* const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();
|
|
1243
|
-
* conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onInvitationRemoved, ({
|
|
1244
|
-
* console.log('conferenceInvitationManager.onInvitationRemoved',
|
|
1182
|
+
* conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onInvitationRemoved, ({ roomInfo, invitation }) => {
|
|
1183
|
+
* console.log('conferenceInvitationManager.onInvitationRemoved', roomInfo, invitation);
|
|
1245
1184
|
* })
|
|
1246
1185
|
*/
|
|
1247
1186
|
onInvitationRemoved = "onInvitationRemoved",
|
|
@@ -1250,15 +1189,15 @@ declare enum TUIConferenceInvitationManagerEvents {
|
|
|
1250
1189
|
* @default 'onInvitationStatusChanged'
|
|
1251
1190
|
* @event TUIConferenceInvitationManagerEvents#onInvitationStatusChanged
|
|
1252
1191
|
* @param {object} options
|
|
1253
|
-
* @param {
|
|
1192
|
+
* @param {TUIRoomInfo} options.roomInfo 会议信息。
|
|
1254
1193
|
* @param {TUIInvitation} options.invitation 邀请信息。
|
|
1255
1194
|
*
|
|
1256
1195
|
*
|
|
1257
1196
|
* @example
|
|
1258
1197
|
* const roomEngine = new TUIRoomEngine();
|
|
1259
1198
|
* const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();
|
|
1260
|
-
* conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onInvitationStatusChanged, ({
|
|
1261
|
-
* console.log('conferenceInvitationManager.onInvitationStatusChanged',
|
|
1199
|
+
* conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onInvitationStatusChanged, ({ roomInfo, invitation }) => {
|
|
1200
|
+
* console.log('conferenceInvitationManager.onInvitationStatusChanged', roomInfo, invitation);
|
|
1262
1201
|
* })
|
|
1263
1202
|
*/
|
|
1264
1203
|
onInvitationStatusChanged = "onInvitationStatusChanged"
|
|
@@ -2017,7 +1956,7 @@ declare class TUIRoomDeviceManager {
|
|
|
2017
1956
|
* await roomEngine.startCameraDeviceTest({ view: 'test-preview' });
|
|
2018
1957
|
*/
|
|
2019
1958
|
startCameraDeviceTest(options: {
|
|
2020
|
-
view: string
|
|
1959
|
+
view: string;
|
|
2021
1960
|
}): Promise<void>;
|
|
2022
1961
|
/**
|
|
2023
1962
|
* 停止摄像头测试
|
|
@@ -2225,10 +2164,7 @@ declare class TUIConferenceListManager {
|
|
|
2225
2164
|
statusArray?: TUIConferenceStatus[];
|
|
2226
2165
|
cursor: string;
|
|
2227
2166
|
count: number;
|
|
2228
|
-
}): Promise<
|
|
2229
|
-
conferenceList: TUIConferenceInfo[];
|
|
2230
|
-
cursor: string;
|
|
2231
|
-
}>;
|
|
2167
|
+
}): Promise<Array<TUIConferenceInfo>>;
|
|
2232
2168
|
/**
|
|
2233
2169
|
* 获取预定会议邀请成员列表
|
|
2234
2170
|
*
|
|
@@ -2257,11 +2193,7 @@ declare class TUIConferenceListManager {
|
|
|
2257
2193
|
roomId: string;
|
|
2258
2194
|
cursor: string;
|
|
2259
2195
|
count: number;
|
|
2260
|
-
}): Promise<
|
|
2261
|
-
attendeeList: TUIUserInfo[];
|
|
2262
|
-
cursor: string;
|
|
2263
|
-
totalCount: number;
|
|
2264
|
-
}>;
|
|
2196
|
+
}): Promise<Array<TUIUserInfo>>;
|
|
2265
2197
|
/**
|
|
2266
2198
|
* 添加成员至邀请列表
|
|
2267
2199
|
*
|
|
@@ -2360,7 +2292,7 @@ declare class TUIConferenceInvitationManager {
|
|
|
2360
2292
|
* @param {string} options.userIdList 成员 userId 列表。
|
|
2361
2293
|
* @param {number} options.timeout 超时时间。若 timeout 设置为 0s ,则无超时时间
|
|
2362
2294
|
* @param {string} options.extensionInfo 自定义扩展信息
|
|
2363
|
-
* @returns {Promise<
|
|
2295
|
+
* @returns {Promise<void>}
|
|
2364
2296
|
*
|
|
2365
2297
|
* @example
|
|
2366
2298
|
* const roomEngine = new TUIRoomEngine();
|
|
@@ -2376,7 +2308,7 @@ declare class TUIConferenceInvitationManager {
|
|
|
2376
2308
|
userIdList: string[];
|
|
2377
2309
|
timeout: number;
|
|
2378
2310
|
extensionInfo?: string;
|
|
2379
|
-
}): Promise<
|
|
2311
|
+
}): Promise<void>;
|
|
2380
2312
|
/**
|
|
2381
2313
|
* 取消呼叫
|
|
2382
2314
|
*
|
|
@@ -2463,10 +2395,7 @@ declare class TUIConferenceInvitationManager {
|
|
|
2463
2395
|
roomId: string;
|
|
2464
2396
|
cursor: string;
|
|
2465
2397
|
count: number;
|
|
2466
|
-
}): Promise<
|
|
2467
|
-
invitationList: TUIInvitation[];
|
|
2468
|
-
cursor: string;
|
|
2469
|
-
}>;
|
|
2398
|
+
}): Promise<Array<TUIInvitation>>;
|
|
2470
2399
|
/**
|
|
2471
2400
|
* 监听 conferenceInvitationManager 的事件
|
|
2472
2401
|
* @param event TUIConferenceListManagerEvents
|
|
@@ -4831,5 +4760,4 @@ declare class TUIRoomEngine {
|
|
|
4831
4760
|
private static handleSetFramework;
|
|
4832
4761
|
}
|
|
4833
4762
|
|
|
4834
|
-
export { TRTCRole, TUIAudioQuality, TUIAudioRoute, TUIBattleCode, TUIBattleStoppedReason, TUICaptureSourceType, TUIChangeReason, TUIConferenceCancelReason, TUIConferenceInvitationManager, TUIConferenceInvitationManagerEvents, TUIConferenceListManager, TUIConferenceListManagerEvents, TUIConferenceStatus, TUIConnectionCode, TUIDeviceStatus, TUIErrorCode, TUIInvitationCode, TUIInvitationRejectedReason, TUIInvitationStatus, TUIKickedOutOfRoomReason, TUILiveBattleManagerEvents, TUILiveConnectionManagerEvents, TUILiveGiftManagerEvents, TUILiveLayoutManager, TUILiveLayoutManagerEvents, TUILiveListManager, TUILiveListManagerEvents, TUILiveModifyFlag, TUILiveStatisticsModifyFlag, TUIMediaDevice, TUIMediaDeviceState, TUIMediaDeviceType, TUIMoveSeatPolicy, TUINetworkQuality, TUIRenderMode, TUIRequestAction, TUIRequestCallbackType, TUIResolutionMode, TUIRole, TUIRoomDeviceManager, TUIRoomDeviceMangerEvents, TUIRoomDismissedReason, TUIRoomEvents, TUIRoomType, TUISeatMode,
|
|
4835
|
-
export type { GiftCategory, GiftInfo, StartLiveOptions, TUIAutoPlayCallbackInfo, TUIBattleConfig, TUIBattleInfo, TUIBattleUser, TUIConferenceInfo, TUIConferenceModifyInfo, TUIDeviceInfo, TUIEnterRoomOptions, TUIInvitation, TUILiveConnectionUser, TUILiveInfo, TUILiveListResult, TUILiveModifyInfo, TUILiveStatisticsData, TUILoginUserInfo, TUIMessage, TUINetwork, TUIRequest, TUIRequestCallback, TUIRoomInfo, TUISeatInfo, TUISeatLayout, TUISeatLockParams, TUISeatRegion, TUIUserInfo, TUIVideoEncoderParams };
|
|
4763
|
+
export { type GiftCategory, type GiftInfo, type StartLiveOptions, TRTCRole, TUIAudioQuality, TUIAudioRoute, type TUIAutoPlayCallbackInfo, TUIBattleCode, type TUIBattleConfig, type TUIBattleInfo, TUIBattleStoppedReason, type TUIBattleUser, TUICaptureSourceType, TUIChangeReason, TUIConferenceCancelReason, type TUIConferenceInfo, TUIConferenceInvitationManager, TUIConferenceInvitationManagerEvents, TUIConferenceListManager, TUIConferenceListManagerEvents, type TUIConferenceModifyInfo, TUIConferenceStatus, TUIConnectionCode, type TUIDeviceInfo, TUIDeviceStatus, type TUIEnterRoomOptions, TUIErrorCode, type TUIInvitation, TUIInvitationCode, TUIInvitationRejectedReason, TUIInvitationStatus, TUIKickedOutOfRoomReason, TUILiveBattleManagerEvents, TUILiveConnectionManagerEvents, type TUILiveConnectionUser, TUILiveGiftManagerEvents, type TUILiveInfo, TUILiveLayoutManager, TUILiveLayoutManagerEvents, TUILiveListManager, TUILiveListManagerEvents, type TUILiveListResult, TUILiveModifyFlag, type TUILiveModifyInfo, type TUILiveStatisticsData, TUILiveStatisticsModifyFlag, type TUILoginUserInfo, TUIMediaDevice, TUIMediaDeviceState, TUIMediaDeviceType, type TUIMessage, TUIMoveSeatPolicy, type TUINetwork, TUINetworkQuality, TUIRenderMode, type TUIRequest, TUIRequestAction, type TUIRequestCallback, TUIRequestCallbackType, TUIResolutionMode, TUIRole, TUIRoomDeviceManager, TUIRoomDeviceMangerEvents, TUIRoomDismissedReason, TUIRoomEvents, type TUIRoomInfo, TUIRoomType, type TUISeatInfo, type TUISeatLayout, type TUISeatLockParams, TUISeatMode, type TUISeatRegion, type TUIUserInfo, type TUIVideoEncoderParams, TUIVideoQuality, TUIVideoStreamType, TUIRoomEngine as default };
|