@rongcloud/plugin-call-plus 2.1.5-alpha.2 → 2.1.6

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
@@ -2905,13 +2905,13 @@ interface RCCallPlusPacketLossStats {
2905
2905
  */
2906
2906
  interface IStatusReportListener {
2907
2907
  /**
2908
- * 发送丢包率信息回调,每秒回调一次
2908
+ * 上行丢包率及延迟信息回调,每秒回调一次
2909
2909
  * @param packetLostRate 丢包率,0-100
2910
2910
  * @param delay 发送端的网络延迟,单位毫秒
2911
2911
  */
2912
2912
  onSendPacketLoss(packetLostRate: number, delay: number): void;
2913
2913
  /**
2914
- * 接收丢包率信息回调,每秒回调一次
2914
+ * 下行丢包率及延迟信息回调,每秒回调一次
2915
2915
  * @param data key: userId, value: 接收丢包统计数据
2916
2916
  * @param data[userId].packetLostRate 丢包率:取值范围是 0-100
2917
2917
  * @param data[userId].bitRate 码率大小,单位是 kbps
@@ -3329,6 +3329,13 @@ declare class RCCallPlusClient {
3329
3329
  setAudioConfig(cfg: IAudioConfig): {
3330
3330
  code: number;
3331
3331
  };
3332
+ /**
3333
+ * 设置音频输出设备,用于指定和修改音频播放设备;
3334
+ * @param deviceId
3335
+ */
3336
+ setAudioOutputDeviceId(deviceId: string): Promise<{
3337
+ code: number;
3338
+ }>;
3332
3339
  /**
3333
3340
  * 发起呼叫
3334
3341
  * @param userIds 被叫人员 userId 列表,单人呼叫仅需在数组中放置对方一人的 userId
@@ -3507,6 +3514,10 @@ declare class RCCallPlusClient {
3507
3514
  * 获取麦克风列表
3508
3515
  */
3509
3516
  getMicrophones(): Promise<MediaDeviceInfo[]>;
3517
+ /**
3518
+ * 获取声音播放设备列表
3519
+ */
3520
+ getSpeakers(): Promise<MediaDeviceInfo[]>;
3510
3521
  getRTCSessionId(): string | null;
3511
3522
  /**
3512
3523
  * 切换麦克风功能,通话前和通话中都可调用。