@tencentcloud/tuiroom-engine-electron 1.0.1 → 1.0.2

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.d.ts CHANGED
@@ -33,25 +33,25 @@ declare class TUIRoomEngine {
33
33
  */
34
34
  private JSCallNativeFunctionPromise;
35
35
  /**
36
- * 登录 TUIRoomEngine
37
- *
38
- * @param {object} options
39
- * @param {number} options.sdkAppId sdkAppId <br>
40
- * 在 [实时音视频控制台](https://console.cloud.tencent.com/trtc) 单击 **应用管理** > **创建应用** 创建新应用之后,即可在 **应用信息** 中获取 sdkAppId 信息。
41
- * @param {string} options.userId 用户ID <br>
42
- * 建议限制长度为32字节,只允许包含大小写英文字母(a-zA-Z)、数字(0-9)及下划线和连词符。
43
- * @param {string} options.userSig userSig 签名 <br>
44
- * 计算 userSig 的方式请参考 [UserSig 相关](https://cloud.tencent.com/document/product/647/17275)。
45
- * @returns {Promise<void>}
46
- *
47
- * @example
48
- * // 登录 TUIRoomEngine
49
- * await TUIRoomEngine.login({
50
- * sdkAppId: 0, // 填写您申请的 sdkAppId
51
- * userId: '', // 填写您业务对应的 userId
52
- * userSig: '', // 填写服务器或本地计算的 userSig
53
- * })
54
- */
36
+ * 登录 TUIRoomEngine
37
+ *
38
+ * @param {object} options
39
+ * @param {number} options.sdkAppId sdkAppId <br>
40
+ * 在 [实时音视频控制台](https://console.cloud.tencent.com/trtc) 单击 **应用管理** > **创建应用** 创建新应用之后,即可在 **应用信息** 中获取 sdkAppId 信息。
41
+ * @param {string} options.userId 用户ID <br>
42
+ * 建议限制长度为32字节,只允许包含大小写英文字母(a-zA-Z)、数字(0-9)及下划线和连词符。
43
+ * @param {string} options.userSig userSig 签名 <br>
44
+ * 计算 userSig 的方式请参考 [UserSig 相关](https://cloud.tencent.com/document/product/647/17275)。
45
+ * @returns {Promise<void>}
46
+ *
47
+ * @example
48
+ * // 登录 TUIRoomEngine
49
+ * await TUIRoomEngine.login({
50
+ * sdkAppId: 0, // 填写您申请的 sdkAppId
51
+ * userId: '', // 填写您业务对应的 userId
52
+ * userSig: '', // 填写服务器或本地计算的 userSig
53
+ * })
54
+ */
55
55
  static login(options: {
56
56
  sdkAppId: number;
57
57
  userId: string;
@@ -292,7 +292,7 @@ declare class TUIRoomEngine {
292
292
  seatIndex: number;
293
293
  timeout: number;
294
294
  requestCallback?: (callbackInfo: TUIRequestCallback) => void;
295
- }): Promise<number>;
295
+ }): Promise<string>;
296
296
  /**
297
297
  * 离开麦位
298
298
  * @returns {Promise<void>}
@@ -353,7 +353,7 @@ declare class TUIRoomEngine {
353
353
  userId: string;
354
354
  timeout: number;
355
355
  requestCallback?: (callbackInfo: TUIRequestCallback) => void;
356
- }): Promise<number>;
356
+ }): Promise<string>;
357
357
  /**
358
358
  * 关闭远端用户摄像头
359
359
  *
@@ -412,7 +412,7 @@ declare class TUIRoomEngine {
412
412
  userId: string;
413
413
  timeout: number;
414
414
  requestCallback?: (callbackInfo: TUIRequestCallback) => void;
415
- }): Promise<number>;
415
+ }): Promise<string>;
416
416
  /**
417
417
  * 关闭远端用户麦克风
418
418
  *
@@ -489,7 +489,7 @@ declare class TUIRoomEngine {
489
489
  userId: string;
490
490
  timeout: number;
491
491
  requestCallback?: (callbackInfo: TUIRequestCallback) => void;
492
- }): Promise<number>;
492
+ }): Promise<string>;
493
493
  /**
494
494
  * 要求其他人下麦
495
495
  * @param {object} options 要求其他人下麦的参数
@@ -511,22 +511,22 @@ declare class TUIRoomEngine {
511
511
  /**
512
512
  * 取消已经发出的请求
513
513
  * @param {object} options 取消已经发出请求的参数
514
- * @param {number} options.requestId 请求 Id
514
+ * @param {string} options.requestId 请求 Id
515
515
  * @returns {Promise<void>}
516
516
  *
517
517
  * @example
518
518
  * const roomEngine = new TUIRoomEngine();
519
519
  * await roomEngine.cancelRequest({
520
- * requestId: 0, // 请使用实际 requestId
520
+ * requestId: '', // 请使用实际 requestId
521
521
  * });
522
522
  */
523
523
  cancelRequest(options: {
524
- requestId: number;
524
+ requestId: string;
525
525
  }): Promise<void>;
526
526
  /**
527
527
  * 回复远端用户的请求
528
528
  * @param {object} options 回复远端用户的请求的参数
529
- * @param {number} options.requestId 请求 Id
529
+ * @param {string} options.requestId 请求 Id
530
530
  * @param {boolean} options.agree 是否同意
531
531
  * @returns {Promise<void>}
532
532
  *
@@ -535,18 +535,18 @@ declare class TUIRoomEngine {
535
535
  *
536
536
  * // 同意远端的请求
537
537
  * await roomEngine.responseRemoteRequest({
538
- * requestId: 0, // 请使用实际 requestId
538
+ * requestId: '', // 请使用实际 requestId
539
539
  * agree: true,
540
540
  * });
541
541
  *
542
542
  * // 拒绝远端的请求
543
543
  * await roomEngine.responseRemoteRequest({
544
- * requestId: 0, // 请使用实际 requestId
544
+ * requestId: '', // 请使用实际 requestId
545
545
  * agree: false,
546
546
  * });
547
547
  */
548
548
  responseRemoteRequest(options: {
549
- requestId: number;
549
+ requestId: string;
550
550
  agree: boolean;
551
551
  }): Promise<any>;
552
552
  /**