@tencentcloud/tuiroom-engine-js 3.2.1-beta.1 → 3.3.0-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 +1 -1
- package/index.d.ts +222 -72
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ declare enum TUIErrorCode {
|
|
|
8
8
|
ERR_FAILED = -1,
|
|
9
9
|
ERR_FREQ_LIMIT = -2,
|
|
10
10
|
ERR_REPEAT_OPERATION = -3,
|
|
11
|
+
ERR_ROOM_MISMATCH = -4,
|
|
11
12
|
ERR_SDKAPPID_NOT_FOUND = -1000,
|
|
12
13
|
ERR_INVALID_PARAMETER = -1001,
|
|
13
14
|
ERR_SDK_NOT_INITIALIZED = -1002,
|
|
@@ -53,9 +54,14 @@ declare enum TUIErrorCode {
|
|
|
53
54
|
ERR_OPEN_SCREEN_SHARE_NEED_PERMISSION_FROM_ADMIN = -2373,
|
|
54
55
|
ERR_SEND_MESSAGE_DISABLED_FOR_ALL = -2380,
|
|
55
56
|
ERR_SEND_MESSAGE_DISABLED_FOR_CURRENT = -2381,
|
|
57
|
+
ERR_ROOM_NOT_SUPPORT_PRELOADING = -4001,
|
|
58
|
+
ERR_CALL_IN_PROGRESS = -6001,
|
|
59
|
+
ERR_SERVER_SYSTEM_ERROR = 100001,
|
|
60
|
+
ERR_SERVER_INVALID_PARAMETER = 100002,
|
|
56
61
|
ERR_ROOM_ID_OCCUPIED = 100003,
|
|
57
62
|
ERR_ROOM_ID_NOT_EXIST = 100004,
|
|
58
63
|
ERR_USER_NOT_ENTERED = 100005,
|
|
64
|
+
ERR_NO_PERMISSION = 100006,
|
|
59
65
|
ERR_NEED_PASSWORD = 100018,
|
|
60
66
|
ERR_WRONG_PASSWORD = 100019,
|
|
61
67
|
ERR_ROOM_USER_FULL = 100008,
|
|
@@ -73,7 +79,13 @@ declare enum TUIErrorCode {
|
|
|
73
79
|
ERR_BATTLE_ID_NOT_EXIST = 100411,
|
|
74
80
|
ERR_ROOM_BATTLEID_IN_OTHER = 100415,
|
|
75
81
|
ERR_ROOM_METADATA_EXCEED_KEY_COUNT_LIMIT = 100500,
|
|
76
|
-
ERR_ROOM_METADATA_EXCEED_VALUE_SIZE_LIMIT = 100501
|
|
82
|
+
ERR_ROOM_METADATA_EXCEED_VALUE_SIZE_LIMIT = 100501,
|
|
83
|
+
ERR_GIFT_ABILITY_NOT_ENABLED = 102001,
|
|
84
|
+
ERR_GIFT_NOT_EXIST = 102002,
|
|
85
|
+
ERR_GIFT_SERVER_PRE_VERIFICATION_FAILED = 102004,
|
|
86
|
+
ERR_MIX_STREAM_UPDATE_TOO_FREQ = 100427,
|
|
87
|
+
ERR_PUBLISH_STREAM_INFO_NOT_EXISTED = 100430,
|
|
88
|
+
ERR_PUBLISH_STREAM_NO_NEED_RECOVERY = 100431
|
|
77
89
|
}
|
|
78
90
|
type TUIRoomInfo = {
|
|
79
91
|
roomId: string;
|
|
@@ -1170,15 +1182,43 @@ declare enum TUIConferenceInvitationManagerEvents {
|
|
|
1170
1182
|
onInvitationStatusChanged = "onInvitationStatusChanged"
|
|
1171
1183
|
}
|
|
1172
1184
|
type TUILiveInfo = {
|
|
1173
|
-
|
|
1185
|
+
roomId: string;
|
|
1186
|
+
roomType: TUIRoomType;
|
|
1187
|
+
name: string;
|
|
1188
|
+
notice: string;
|
|
1189
|
+
isMessageDisableForAllUser: boolean;
|
|
1174
1190
|
isGiftEnabled: boolean;
|
|
1175
1191
|
isLikeEnabled: boolean;
|
|
1176
1192
|
isPublicVisible: boolean;
|
|
1177
|
-
|
|
1178
|
-
|
|
1193
|
+
isSeatEnabled: boolean;
|
|
1194
|
+
keepOwnerOnSeat: boolean;
|
|
1195
|
+
seatLayoutTemplateId: number;
|
|
1196
|
+
maxSeatCount: number;
|
|
1197
|
+
seatMode: TUISeatMode;
|
|
1179
1198
|
coverUrl: string;
|
|
1180
1199
|
backgroundUrl: string;
|
|
1181
1200
|
categoryList: Array<number>;
|
|
1201
|
+
activityStatus: number;
|
|
1202
|
+
readonly roomOwner?: string;
|
|
1203
|
+
readonly ownerName?: string;
|
|
1204
|
+
readonly ownerAvatarUrl?: string;
|
|
1205
|
+
readonly createTime?: number;
|
|
1206
|
+
readonly totalViewers?: number;
|
|
1207
|
+
readonly isUnlimitedRoomEnabled?: boolean;
|
|
1208
|
+
readonly cdnStreamUrl?: string;
|
|
1209
|
+
readonly lebSecretKey?: string;
|
|
1210
|
+
readonly lebEncrypted?: string;
|
|
1211
|
+
readonly lebSignature?: string;
|
|
1212
|
+
};
|
|
1213
|
+
/**
|
|
1214
|
+
* 直播连线用户信息
|
|
1215
|
+
*/
|
|
1216
|
+
type TUILiveConnectionUser = {
|
|
1217
|
+
roomId: string;
|
|
1218
|
+
userId: string;
|
|
1219
|
+
userName: string;
|
|
1220
|
+
avatarUrl: string;
|
|
1221
|
+
joinConnectionTime: number;
|
|
1182
1222
|
};
|
|
1183
1223
|
type TUILiveModifyInfo = {
|
|
1184
1224
|
roomId: string;
|
|
@@ -1187,16 +1227,22 @@ type TUILiveModifyInfo = {
|
|
|
1187
1227
|
coverUrl?: string;
|
|
1188
1228
|
backgroundUrl?: string;
|
|
1189
1229
|
categoryList?: Array<number>;
|
|
1230
|
+
seatLayoutTemplateId?: number;
|
|
1190
1231
|
};
|
|
1191
1232
|
declare enum TUILiveModifyFlag {
|
|
1192
1233
|
kNone = 0,
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
kEnableGift =
|
|
1197
|
-
kEnableLike =
|
|
1198
|
-
kPublic =
|
|
1199
|
-
|
|
1234
|
+
kName = 1,
|
|
1235
|
+
kNotice = 2,
|
|
1236
|
+
kDisableMessage = 4,
|
|
1237
|
+
kEnableGift = 8,
|
|
1238
|
+
kEnableLike = 16,
|
|
1239
|
+
kPublic = 32,
|
|
1240
|
+
kTakeSeatMode = 64,
|
|
1241
|
+
kCoverUrl = 128,
|
|
1242
|
+
kBackgroundUrl = 256,
|
|
1243
|
+
kCategory = 512,
|
|
1244
|
+
kActivityStatus = 1024,
|
|
1245
|
+
kSeatLayoutTemplateId = 2048
|
|
1200
1246
|
}
|
|
1201
1247
|
type TUILiveListResult = {
|
|
1202
1248
|
cursor: string;
|
|
@@ -1233,8 +1279,101 @@ declare enum TUILiveLayoutManagerEvents {
|
|
|
1233
1279
|
* };
|
|
1234
1280
|
* liveLayoutManager.on(TUILiveLayoutManagerEvents.onLiveVideoLayoutChanged, callback);
|
|
1235
1281
|
*/
|
|
1236
|
-
onLiveVideoLayoutChanged = "onLiveVideoLayoutChanged"
|
|
1282
|
+
onLiveVideoLayoutChanged = "onLiveVideoLayoutChanged",
|
|
1283
|
+
/**
|
|
1284
|
+
* @description 麦位排版信息发生变化事件回调
|
|
1285
|
+
* @since v3.3.0
|
|
1286
|
+
* @default 'onSeatLayoutChanged'
|
|
1287
|
+
* @event TUILiveLayoutManagerEvents#onSeatLayoutChanged
|
|
1288
|
+
* @param {object} option
|
|
1289
|
+
* @param {string} option.roomId 房间 ID
|
|
1290
|
+
* @param {TUISeatLayout} option.seatLayout 麦位排版信息
|
|
1291
|
+
*
|
|
1292
|
+
* @example
|
|
1293
|
+
* const roomEngine = new TUIRoomEngine();
|
|
1294
|
+
* const liveLayoutManager = roomEngine.getLiveLayoutManager();
|
|
1295
|
+
* const callback = (roomId, seatLayout) => {
|
|
1296
|
+
* console.log('liveLayoutManager.onSeatLayoutChanged', roomId, seatLayout);
|
|
1297
|
+
* });
|
|
1298
|
+
* liveLayoutManager.on(TUILiveLayoutManagerEvents.onSeatLayoutChanged, callback);
|
|
1299
|
+
*/
|
|
1300
|
+
onSeatLayoutChanged = "onSeatLayoutChanged"
|
|
1301
|
+
}
|
|
1302
|
+
declare enum TUIDeviceStatus {
|
|
1303
|
+
TUIDeviceStatusOpened = 0,
|
|
1304
|
+
TUIDeviceStatusClosedBySelf = 1,
|
|
1305
|
+
TUIDeviceStatusClosedByAdmin = 2
|
|
1306
|
+
}
|
|
1307
|
+
/**
|
|
1308
|
+
* 麦位排版信息
|
|
1309
|
+
* @typedef {object} TUISeatRegion
|
|
1310
|
+
* @property {string} roomId 直播间 ID
|
|
1311
|
+
* @property {number} seatIndex 麦位序号
|
|
1312
|
+
* @property {isSeatLocked} isSeatLocked 是否被锁定
|
|
1313
|
+
* @property {string} userId 用户 ID
|
|
1314
|
+
* @property {string} userName 用户名称
|
|
1315
|
+
* @property {string} userAvatar 用户头像
|
|
1316
|
+
* @property {TUIDeviceStatus} userMicrophoneStatus 用户麦克风状态
|
|
1317
|
+
* @property {TUIDeviceStatus} userCameraStatus 用户摄像头状态
|
|
1318
|
+
* @property {number} x 麦位 X 坐标
|
|
1319
|
+
* @property {number} y 麦位 Y 坐标
|
|
1320
|
+
* @property {number} width 麦位宽度
|
|
1321
|
+
* @property {number} height 麦位高度
|
|
1322
|
+
* @property {number} zorder 麦位 Z 轴顺序
|
|
1323
|
+
*/
|
|
1324
|
+
type TUISeatRegion = {
|
|
1325
|
+
roomId: string;
|
|
1326
|
+
seatIndex: number;
|
|
1327
|
+
isSeatLocked: boolean;
|
|
1328
|
+
userId: string;
|
|
1329
|
+
userName: string;
|
|
1330
|
+
userAvatar: string;
|
|
1331
|
+
userMicrophoneStatus: TUIDeviceStatus;
|
|
1332
|
+
userCameraStatus: TUIDeviceStatus;
|
|
1333
|
+
x: number;
|
|
1334
|
+
y: number;
|
|
1335
|
+
width: number;
|
|
1336
|
+
height: number;
|
|
1337
|
+
zorder: number;
|
|
1338
|
+
};
|
|
1339
|
+
/**
|
|
1340
|
+
* 直播间麦位排版
|
|
1341
|
+
* @typedef {object} TUISeatLayout
|
|
1342
|
+
* @property {number} templateId 麦位排版模板 ID
|
|
1343
|
+
* @property {number} canvasWidth 麦位排版画布宽度
|
|
1344
|
+
* @property {number} canvasHeight 麦位排版画布高度
|
|
1345
|
+
* @property {Array<TUISeatRegion>} regions 麦位排版区域列表
|
|
1346
|
+
*/
|
|
1347
|
+
type TUISeatLayout = {
|
|
1348
|
+
templateId: number;
|
|
1349
|
+
canvasWidth: number;
|
|
1350
|
+
canvasHeight: number;
|
|
1351
|
+
regions: Array<TUISeatRegion>;
|
|
1352
|
+
};
|
|
1353
|
+
declare enum TUISeatLayoutTemplate {
|
|
1354
|
+
LandscapeDynamic_1v3 = 200,
|
|
1355
|
+
PortraitDynamic_Grid9 = 600,
|
|
1356
|
+
PortraitDynamic_1v6 = 601,
|
|
1357
|
+
PortraitFixed_Grid9 = 800,
|
|
1358
|
+
PortraitFixed_1v6 = 801,
|
|
1359
|
+
PortraitFixed_6v6 = 802
|
|
1237
1360
|
}
|
|
1361
|
+
/**
|
|
1362
|
+
* 直播间统计信息
|
|
1363
|
+
* @typedef {object} TUILiveStatisticsData
|
|
1364
|
+
* @property {number} totalViewers 观众人数
|
|
1365
|
+
* @property {number} totalGiftsSent 礼物发送总数
|
|
1366
|
+
* @property {number} totalGiftCoins 礼物总价值
|
|
1367
|
+
* @property {number} totalUniqueGiftSenders 礼物发送者总数
|
|
1368
|
+
* @property {number} totalLikesReceived 点赞总数
|
|
1369
|
+
*/
|
|
1370
|
+
type TUILiveStatisticsData = {
|
|
1371
|
+
totalViewers: number;
|
|
1372
|
+
totalGiftsSent: number;
|
|
1373
|
+
totalGiftCoins: number;
|
|
1374
|
+
totalUniqueGiftSenders: number;
|
|
1375
|
+
totalLikesReceived: number;
|
|
1376
|
+
};
|
|
1238
1377
|
/**
|
|
1239
1378
|
* @since v3.0.5
|
|
1240
1379
|
* **TUILiveConnectionManager** 事件列表<br>
|
|
@@ -1244,18 +1383,16 @@ declare enum TUILiveConnectionManagerEvents {
|
|
|
1244
1383
|
* @description 接收到连线请求的监听事件
|
|
1245
1384
|
* @default 'onConnectionRequestReceived'
|
|
1246
1385
|
* @event TUILiveConnectionManagerEvents#onConnectionRequestReceived
|
|
1247
|
-
* @param {
|
|
1248
|
-
* @param {
|
|
1249
|
-
* @param {
|
|
1250
|
-
* @param {
|
|
1251
|
-
* @param {userId} options.userId ID
|
|
1252
|
-
* @param {userName} options.userName 用户名
|
|
1386
|
+
* @param {object} options
|
|
1387
|
+
* @param {TUILiveConnectionUser} options.inviter 连线邀请者
|
|
1388
|
+
* @param {Array<TUILiveConnectionUser>} options.inviteeList 连线被邀请者列表
|
|
1389
|
+
* @param {string} options.extensionInfo 扩展信息
|
|
1253
1390
|
*
|
|
1254
1391
|
* @example
|
|
1255
1392
|
* const roomEngine = new TUIRoomEngine();
|
|
1256
1393
|
* const liveConnectionManager = roomEngine.getLiveConnectionManager();
|
|
1257
|
-
* liveConnectionManager.on(TUILiveConnectionManagerEvents.onConnectionRequestReceived, ({
|
|
1258
|
-
* console.log('liveConnectionManager.onConnectionRequestReceived',
|
|
1394
|
+
* liveConnectionManager.on(TUILiveConnectionManagerEvents.onConnectionRequestReceived, ({ inviter, inviteeList, extensionInfo }) => {
|
|
1395
|
+
* console.log('liveConnectionManager.onConnectionRequestReceived', inviter, inviteeList, extensionInfo);
|
|
1259
1396
|
* });
|
|
1260
1397
|
*/
|
|
1261
1398
|
onConnectionRequestReceived = "onConnectionRequestReceived",
|
|
@@ -1264,9 +1401,9 @@ declare enum TUILiveConnectionManagerEvents {
|
|
|
1264
1401
|
* @default 'onConnectionUserListChanged'
|
|
1265
1402
|
* @event TUILiveConnectionManagerEvents#onConnectionUserListChanged
|
|
1266
1403
|
* @param {object} options
|
|
1267
|
-
* @param {
|
|
1268
|
-
* @param {
|
|
1269
|
-
* @param {
|
|
1404
|
+
* @param {Array<TUILiveConnectionUser>} options.connectedList 包含连线房间所有主播列表
|
|
1405
|
+
* @param {Array<TUILiveConnectionUser>} options.joinedList 本次事件变更加入连线房间的主播列表
|
|
1406
|
+
* @param {Array<TUILiveConnectionUser>} options.leavedList 本次事件变更离开连线房间的主播列表
|
|
1270
1407
|
*
|
|
1271
1408
|
* @example
|
|
1272
1409
|
* const roomEngine = new TUIRoomEngine();
|
|
@@ -1280,18 +1417,14 @@ declare enum TUILiveConnectionManagerEvents {
|
|
|
1280
1417
|
* @description 连线请求被取消的监听事件
|
|
1281
1418
|
* @default 'onConnectionRequestCancelled'
|
|
1282
1419
|
* @event TUILiveConnectionManagerEvents#onConnectionRequestCancelled
|
|
1283
|
-
* @param {
|
|
1284
|
-
* @param {
|
|
1285
|
-
* @param {joinConnectionTime} options.joinConnectionTime 加入连线时间
|
|
1286
|
-
* @param {roomId} options.roomId 房间号
|
|
1287
|
-
* @param {userId} options.userId ID
|
|
1288
|
-
* @param {userName} options.userName 用户名
|
|
1420
|
+
* @param {object} options
|
|
1421
|
+
* @param {TUILiveConnectionUser} options.inviter 连线邀请者
|
|
1289
1422
|
*
|
|
1290
1423
|
* @example
|
|
1291
1424
|
* const roomEngine = new TUIRoomEngine();
|
|
1292
1425
|
* const liveConnectionManager = roomEngine.getLiveConnectionManager();
|
|
1293
|
-
* liveConnectionManager.on(TUILiveConnectionManagerEvents.onConnectionRequestCancelled, ({
|
|
1294
|
-
* console.log('liveConnectionManager.onConnectionRequestCancelled',
|
|
1426
|
+
* liveConnectionManager.on(TUILiveConnectionManagerEvents.onConnectionRequestCancelled, ({ inviter }) => {
|
|
1427
|
+
* console.log('liveConnectionManager.onConnectionRequestCancelled', inviter);
|
|
1295
1428
|
* });
|
|
1296
1429
|
*/
|
|
1297
1430
|
onConnectionRequestCancelled = "onConnectionRequestCancelled",
|
|
@@ -1299,18 +1432,14 @@ declare enum TUILiveConnectionManagerEvents {
|
|
|
1299
1432
|
* @description 连线请求被同意的监听事件
|
|
1300
1433
|
* @default 'onConnectionRequestAccept'
|
|
1301
1434
|
* @event TUILiveConnectionManagerEvents#onConnectionRequestAccept
|
|
1302
|
-
* @param {
|
|
1303
|
-
* @param {
|
|
1304
|
-
* @param {joinConnectionTime} options.joinConnectionTime 加入连线时间
|
|
1305
|
-
* @param {roomId} options.roomId 房间号
|
|
1306
|
-
* @param {userId} options.userId ID
|
|
1307
|
-
* @param {userName} options.userName 用户名
|
|
1435
|
+
* @param {object} options
|
|
1436
|
+
* @param {TUILiveConnectionUser} options.invitee 连线被邀请者
|
|
1308
1437
|
*
|
|
1309
1438
|
* @example
|
|
1310
1439
|
* const roomEngine = new TUIRoomEngine();
|
|
1311
1440
|
* const liveConnectionManager = roomEngine.getLiveConnectionManager();
|
|
1312
|
-
* liveConnectionManager.on(TUILiveConnectionManagerEvents.onConnectionRequestAccept, ({
|
|
1313
|
-
* console.log('liveConnectionManager.onConnectionRequestAccept',
|
|
1441
|
+
* liveConnectionManager.on(TUILiveConnectionManagerEvents.onConnectionRequestAccept, ({ invitee }) => {
|
|
1442
|
+
* console.log('liveConnectionManager.onConnectionRequestAccept', invitee);
|
|
1314
1443
|
* });
|
|
1315
1444
|
*/
|
|
1316
1445
|
onConnectionRequestAccept = "onConnectionRequestAccept",
|
|
@@ -1318,45 +1447,32 @@ declare enum TUILiveConnectionManagerEvents {
|
|
|
1318
1447
|
* @description 连线请求被拒绝的监听事件
|
|
1319
1448
|
* @default 'onConnectionRequestReject'
|
|
1320
1449
|
* @event TUILiveConnectionManagerEvents#onConnectionRequestReject
|
|
1321
|
-
* @param {
|
|
1322
|
-
* @param {
|
|
1323
|
-
* @param {joinConnectionTime} options.joinConnectionTime 加入连线时间
|
|
1324
|
-
* @param {roomId} options.roomId 房间号
|
|
1325
|
-
* @param {userId} options.userId ID
|
|
1326
|
-
* @param {userName} options.userName 用户名
|
|
1450
|
+
* @param {object} options
|
|
1451
|
+
* @param {TUILiveConnectionUser} options.invitee 连线被邀请者
|
|
1327
1452
|
*
|
|
1328
1453
|
* @example
|
|
1329
1454
|
* const roomEngine = new TUIRoomEngine();
|
|
1330
1455
|
* const liveConnectionManager = roomEngine.getLiveConnectionManager();
|
|
1331
|
-
* liveConnectionManager.on(TUILiveConnectionManagerEvents.onConnectionRequestReject, ({
|
|
1332
|
-
* console.log('liveConnectionManager.onConnectionRequestReject',
|
|
1456
|
+
* liveConnectionManager.on(TUILiveConnectionManagerEvents.onConnectionRequestReject, ({ invitee }) => {
|
|
1457
|
+
* console.log('liveConnectionManager.onConnectionRequestReject', invitee);
|
|
1333
1458
|
* });
|
|
1334
1459
|
*/
|
|
1335
1460
|
onConnectionRequestReject = "onConnectionRequestReject",
|
|
1336
1461
|
/**
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
* @param {userName} inviter.userName 用户名
|
|
1352
|
-
*
|
|
1353
|
-
* @example
|
|
1354
|
-
* const roomEngine = new TUIRoomEngine();
|
|
1355
|
-
* const liveConnectionManager = roomEngine.getLiveConnectionManager();
|
|
1356
|
-
* liveConnectionManager.on(TUILiveConnectionManagerEvents.onConnectionRequestTimeout, (invitee, inviter) => {
|
|
1357
|
-
* console.log('liveConnectionManager.onConnectionRequestTimeout', invitee, inviter);
|
|
1358
|
-
* });
|
|
1359
|
-
*/
|
|
1462
|
+
* @description 邀请超时的监听事件
|
|
1463
|
+
* @default 'onConnectionRequestTimeout'
|
|
1464
|
+
* @event TUILiveConnectionManagerEvents#onConnectionRequestTimeout
|
|
1465
|
+
* @param {object} option
|
|
1466
|
+
* @param {TUILiveConnectionUser} option.inviter 连线邀请者
|
|
1467
|
+
* @param {TUILiveConnectionUser} option.invitee 连线被邀请者
|
|
1468
|
+
*
|
|
1469
|
+
* @example
|
|
1470
|
+
* const roomEngine = new TUIRoomEngine();
|
|
1471
|
+
* const liveConnectionManager = roomEngine.getLiveConnectionManager();
|
|
1472
|
+
* liveConnectionManager.on(TUILiveConnectionManagerEvents.onConnectionRequestTimeout, ({ invitee, inviter }) => {
|
|
1473
|
+
* console.log('liveConnectionManager.onConnectionRequestTimeout', invitee, inviter);
|
|
1474
|
+
* });
|
|
1475
|
+
*/
|
|
1360
1476
|
onConnectionRequestTimeout = "onConnectionRequestTimeout"
|
|
1361
1477
|
}
|
|
1362
1478
|
|
|
@@ -1948,6 +2064,7 @@ declare class TUIConferenceInvitationManager {
|
|
|
1948
2064
|
* @class TUILiveListManager
|
|
1949
2065
|
*/
|
|
1950
2066
|
declare class TUILiveListManager {
|
|
2067
|
+
private roomEngineWASM;
|
|
1951
2068
|
private liveListManagerWASM;
|
|
1952
2069
|
private logger;
|
|
1953
2070
|
private static liveListManager;
|
|
@@ -1956,6 +2073,10 @@ declare class TUILiveListManager {
|
|
|
1956
2073
|
logger: Logger;
|
|
1957
2074
|
roomEngineWASM: any;
|
|
1958
2075
|
});
|
|
2076
|
+
startLive(liveInfo: TUILiveInfo): Promise<TUILiveInfo>;
|
|
2077
|
+
stopLive(): Promise<TUILiveStatisticsData>;
|
|
2078
|
+
joinLive(roomId: string): Promise<TUILiveInfo>;
|
|
2079
|
+
leaveLive(): Promise<void>;
|
|
1959
2080
|
/**
|
|
1960
2081
|
* 修改直播间信息
|
|
1961
2082
|
*
|
|
@@ -1987,6 +2108,7 @@ declare class TUILiveListManager {
|
|
|
1987
2108
|
coverUrl?: string;
|
|
1988
2109
|
isPublicVisible?: boolean;
|
|
1989
2110
|
backgroundUrl?: string;
|
|
2111
|
+
seatLayoutTemplateId?: number;
|
|
1990
2112
|
}): Promise<void>;
|
|
1991
2113
|
/**
|
|
1992
2114
|
* 获取直播间信息
|
|
@@ -2028,6 +2150,35 @@ declare class TUILiveListManager {
|
|
|
2028
2150
|
cursor: string;
|
|
2029
2151
|
count: number;
|
|
2030
2152
|
}): Promise<TUILiveListResult>;
|
|
2153
|
+
/**
|
|
2154
|
+
* 进房前预览视频流
|
|
2155
|
+
* @since 3.3.0
|
|
2156
|
+
* @param options
|
|
2157
|
+
* @param options.roomId 房间 Id
|
|
2158
|
+
* @param options.isMuteAudio 是否静音预览
|
|
2159
|
+
* @param options.view 播放视频流区域
|
|
2160
|
+
*/
|
|
2161
|
+
startPreloadVideoStream(options: {
|
|
2162
|
+
roomId: string;
|
|
2163
|
+
isMuteAudio: boolean;
|
|
2164
|
+
view: string;
|
|
2165
|
+
}): Promise<void>;
|
|
2166
|
+
/**
|
|
2167
|
+
* 停止预览视频流
|
|
2168
|
+
* @since 3.3.0
|
|
2169
|
+
* @param options
|
|
2170
|
+
* @param options.roomId 房间 Id
|
|
2171
|
+
*/
|
|
2172
|
+
stopPreloadVideoStream(options: {
|
|
2173
|
+
roomId: string;
|
|
2174
|
+
}): Promise<void>;
|
|
2175
|
+
/**
|
|
2176
|
+
* @private
|
|
2177
|
+
* 调用 TUIRoomEngineWASM 的 CallAPI 方法
|
|
2178
|
+
* @param funcName
|
|
2179
|
+
* @param jsonString
|
|
2180
|
+
*/
|
|
2181
|
+
private JSCallNativeCallAPIPromise;
|
|
2031
2182
|
private JSCallNativeFunctionPromise;
|
|
2032
2183
|
/**
|
|
2033
2184
|
* 监听 TUILiveListManager 事件
|
|
@@ -2261,7 +2412,6 @@ declare class TUILiveConnectionManager {
|
|
|
2261
2412
|
disconnect(): Promise<void>;
|
|
2262
2413
|
private JSCallNativeFunctionPromise;
|
|
2263
2414
|
private observerFunction;
|
|
2264
|
-
private handleLiveConnectionEvent;
|
|
2265
2415
|
}
|
|
2266
2416
|
|
|
2267
2417
|
/**
|
|
@@ -3753,4 +3903,4 @@ declare class TUIRoomEngine {
|
|
|
3753
3903
|
private static handleSetFramework;
|
|
3754
3904
|
}
|
|
3755
3905
|
|
|
3756
|
-
export { TRTCRole, TUIAudioQuality, TUIAudioRoute, type TUIAutoPlayCallbackInfo, TUICaptureSourceType, TUIChangeReason, TUIConferenceCancelReason, type TUIConferenceInfo, TUIConferenceInvitationManager, TUIConferenceInvitationManagerEvents, TUIConferenceListManager, TUIConferenceListManagerEvents, type TUIConferenceModifyInfo, TUIConferenceStatus, type TUIDeviceInfo, type TUIEnterRoomOptions, TUIErrorCode, type TUIInvitation, TUIInvitationCode, TUIInvitationRejectedReason, TUIInvitationStatus, TUIKickedOutOfRoomReason, TUILiveConnectionManagerEvents, type TUILiveInfo, TUILiveLayoutManager, TUILiveLayoutManagerEvents, TUILiveListManager, TUILiveListManagerEvents, type TUILiveListResult, TUILiveModifyFlag, type TUILiveModifyInfo, type TUILoginUserInfo, TUIMediaDevice, TUIMediaDeviceState, TUIMediaDeviceType, type TUIMessage, type TUINetwork, TUINetworkQuality, type TUIRequest, TUIRequestAction, type TUIRequestCallback, TUIRequestCallbackType, TUIResolutionMode, TUIRole, TUIRoomDeviceManager, TUIRoomDeviceMangerEvents, TUIRoomDismissedReason, TUIRoomEvents, type TUIRoomInfo, TUIRoomType, type TUISeatInfo, type TUISeatLockParams, TUISeatMode, type TUIUserInfo, type TUIVideoEncoderParams, TUIVideoQuality, TUIVideoStreamType, TUIRoomEngine as default };
|
|
3906
|
+
export { TRTCRole, TUIAudioQuality, TUIAudioRoute, type TUIAutoPlayCallbackInfo, TUICaptureSourceType, TUIChangeReason, TUIConferenceCancelReason, type TUIConferenceInfo, TUIConferenceInvitationManager, TUIConferenceInvitationManagerEvents, TUIConferenceListManager, TUIConferenceListManagerEvents, type TUIConferenceModifyInfo, TUIConferenceStatus, type TUIDeviceInfo, TUIDeviceStatus, type TUIEnterRoomOptions, TUIErrorCode, type TUIInvitation, TUIInvitationCode, TUIInvitationRejectedReason, TUIInvitationStatus, TUIKickedOutOfRoomReason, TUILiveConnectionManagerEvents, type TUILiveConnectionUser, type TUILiveInfo, TUILiveLayoutManager, TUILiveLayoutManagerEvents, TUILiveListManager, TUILiveListManagerEvents, type TUILiveListResult, TUILiveModifyFlag, type TUILiveModifyInfo, type TUILiveStatisticsData, type TUILoginUserInfo, TUIMediaDevice, TUIMediaDeviceState, TUIMediaDeviceType, type TUIMessage, type TUINetwork, TUINetworkQuality, type TUIRequest, TUIRequestAction, type TUIRequestCallback, TUIRequestCallbackType, TUIResolutionMode, TUIRole, TUIRoomDeviceManager, TUIRoomDeviceMangerEvents, TUIRoomDismissedReason, TUIRoomEvents, type TUIRoomInfo, TUIRoomType, type TUISeatInfo, type TUISeatLayout, TUISeatLayoutTemplate, type TUISeatLockParams, TUISeatMode, type TUISeatRegion, type TUIUserInfo, type TUIVideoEncoderParams, TUIVideoQuality, TUIVideoStreamType, TUIRoomEngine as default };
|