@tencentcloud/tuiroom-engine-js 2.0.2 → 2.1.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 +1 -1
- package/index.d.ts +16 -4
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
- package/types.d.ts +17 -0
package/index.d.ts
CHANGED
|
@@ -252,10 +252,12 @@ declare class TUIRoomEngine {
|
|
|
252
252
|
* const roomEngine = new TUIRoomEngine();
|
|
253
253
|
* const userList = [];
|
|
254
254
|
* let result;
|
|
255
|
+
* let nextSequence = 0;
|
|
255
256
|
* do {
|
|
256
|
-
* result = await roomEngine.getUserList();
|
|
257
|
+
* result = await roomEngine.getUserList({ nextSequence });
|
|
257
258
|
* userList.push(...result.userInfoList);
|
|
258
|
-
*
|
|
259
|
+
* nextSequence = result.nextSequence;
|
|
260
|
+
* } while (nextSequence !== 0)
|
|
259
261
|
*/
|
|
260
262
|
getUserList(options?: {
|
|
261
263
|
nextSequence?: number;
|
|
@@ -279,7 +281,7 @@ declare class TUIRoomEngine {
|
|
|
279
281
|
/**
|
|
280
282
|
* 设置本地视频流的渲染位置
|
|
281
283
|
* @param {object} options 设置本地视频流的渲染位置的参数
|
|
282
|
-
* @param {string | Array<string>} options.view
|
|
284
|
+
* @param {string | Array<string> | null} options.view 本地视频流的渲染位置,如果传入 null 则不预览摄像头画面,但不影响摄像头采集,会正常推流。
|
|
283
285
|
* @returns {Promise<void>}
|
|
284
286
|
* @desc 自 v1.6.1 版本起,setLocalVideoView 不再需要传入 streamType 参数
|
|
285
287
|
*
|
|
@@ -292,7 +294,7 @@ declare class TUIRoomEngine {
|
|
|
292
294
|
* });
|
|
293
295
|
*/
|
|
294
296
|
setLocalVideoView(options: {
|
|
295
|
-
view: string | Array<string
|
|
297
|
+
view: string | Array<string> | null;
|
|
296
298
|
streamType?: TUIVideoStreamType;
|
|
297
299
|
}): void;
|
|
298
300
|
/**
|
|
@@ -985,6 +987,16 @@ declare class TUIRoomEngine {
|
|
|
985
987
|
seatIndex: number;
|
|
986
988
|
lockParams: TUISeatLockParams;
|
|
987
989
|
}): Promise<any>;
|
|
990
|
+
/**
|
|
991
|
+
* 主持人/管理员 获取房间内申请上麦用户的请求列表
|
|
992
|
+
* @returns {Promise<TUIRequest[]>}
|
|
993
|
+
*
|
|
994
|
+
* @example
|
|
995
|
+
* const roomEngine = new TUIRoomEngine();
|
|
996
|
+
* const seatList = await roomEngine.getSeatApplicationList();
|
|
997
|
+
* ;
|
|
998
|
+
*/
|
|
999
|
+
getSeatApplicationList(): Promise<TUIRequest[]>;
|
|
988
1000
|
/**
|
|
989
1001
|
* 发送文本消息
|
|
990
1002
|
* @deprecated 该接口自 v2.0.0 版本废弃,请使用 {@link getTIM} 方法获取 tim 实例发送消息
|