@rongcloud/plugin-call-plus 2.1.7-enterprise-lz.1 → 2.1.7-enterprise-lz.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
@@ -1052,7 +1052,7 @@ interface ISignalTransporterListener {
1052
1052
  /**
1053
1053
  * 收到通话状态变更
1054
1054
  */
1055
- onStatusDown(data: IStatusDownCont, traceId: string, sessionId?: string): void;
1055
+ onStatusDown(data: IStatusDownCont, byServer: boolean, traceId: string): void;
1056
1056
  /**
1057
1057
  * 其他端通话状态变更
1058
1058
  */
@@ -3067,6 +3067,15 @@ interface IStatusReportListener {
3067
3067
  onReceivePacketLoss(data: {
3068
3068
  [userId: string]: RCCallPlusPacketLossStats;
3069
3069
  }): void;
3070
+ /**
3071
+ * 上报远端视频信息,每秒回调一次
3072
+ * @param info.width 视频宽度
3073
+ * @param info.height 视频高度
3074
+ */
3075
+ onReceiveRemoteVideoInfo?(info: {
3076
+ width: number;
3077
+ height: number;
3078
+ }): void;
3070
3079
  }
3071
3080
  /**
3072
3081
  * 人员及人员状态
@@ -3435,9 +3444,12 @@ declare class RCCallPlusClient {
3435
3444
  * 播放某个人的视频前,请确保已经调用 `setVideoView` 方法为其设置视频视图
3436
3445
  * @param userId 指定要查看某个人的媒体资源
3437
3446
  * @param mediaType 指定播放音频还是视频
3447
+ * @param volume 有效值为 0-100
3438
3448
  * @returns 返回是否播放成功
3439
3449
  */
3440
- playMedia(userId: string, mediaType: RCCallPlusMediaType): Promise<{
3450
+ playMedia(userId: string, mediaType: RCCallPlusMediaType, options?: {
3451
+ volume?: number;
3452
+ }): Promise<{
3441
3453
  code: number;
3442
3454
  }>;
3443
3455
  /**