aliyun-rtc-sdk 6.11.7-beta.1 → 6.11.7

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.
@@ -1167,6 +1167,18 @@ declare interface AliRtcEngineEventListener {
1167
1167
  * @note 应该在收到该回调时弹出弹窗引导用户点击页面进行播放,用户点击页面后 SDK 会自动尝试播放
1168
1168
  */
1169
1169
  remoteVideoAutoPlayFail: (uid: string, videoTrack: AliRtcVideoTrack) => void;
1170
+ /**
1171
+ * 远程用户的音频播放出错
1172
+ * @param uid 用户ID
1173
+ * @param reason 出错原因,可选
1174
+ */
1175
+ remoteAudioPlayError: (uid: string, reason: string | undefined) => void;
1176
+ /**
1177
+ * 远程用户的视频播放出错
1178
+ * @param uid 用户ID
1179
+ * @param reason 出错原因,可选
1180
+ */
1181
+ remoteVideoPlayError: (uid: string, reason: string | undefined) => void;
1170
1182
  /**
1171
1183
  * rtc 传输数据统计
1172
1184
  * @param stats 统计信息
@@ -2285,6 +2297,8 @@ declare interface BizControlListener {
2285
2297
  rtcStats: (stats: any) => void;
2286
2298
  remoteAudioAutoPlayFail: (uid: string) => void;
2287
2299
  remoteVideoAutoPlayFail: (uid: string, track: AliRtcVideoTrack) => void;
2300
+ remoteAudioPlayError: (uid: string, reason?: string) => void;
2301
+ remoteVideoPlayError: (uid: string, reason?: string) => void;
2288
2302
  remoteSubscribeError: (error: AliRtcError) => void;
2289
2303
  }
2290
2304
 
@@ -3068,6 +3082,7 @@ declare class RemoteUser extends User {
3068
3082
  setWantSubScreen(value: boolean): void;
3069
3083
  setRemoteDefaultVideoStreamType(type: AliRtcVideoStreamType): void;
3070
3084
  setAudioMuted(value: boolean): void;
3085
+ private handleAudioContextSuspended;
3071
3086
  setPlayoutVolume(value: number): void;
3072
3087
  getAudioMuted(): boolean;
3073
3088
  get hasAudioTrack(): boolean;
@@ -3772,6 +3787,8 @@ declare interface UserListener {
3772
3787
  localDeviceException: (localDeviceType: AliRtcEngineLocalDeviceType, localDeviceExceptionType: AliRtcEngineLocalDeviceExceptionType, description: string) => void;
3773
3788
  remoteAudioAutoPlayFail: (uid: string) => void;
3774
3789
  remoteVideoAutoPlayFail: (uid: string, track: AliRtcVideoTrack) => void;
3790
+ remoteAudioPlayError: (uid: string, reason?: string) => void;
3791
+ remoteVideoPlayError: (uid: string, reason?: string) => void;
3775
3792
  remoteSubscribeError: (error: AliRtcError) => void;
3776
3793
  }
3777
3794
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aliyun-rtc-sdk",
3
- "version": "6.11.7-beta.1",
3
+ "version": "6.11.7",
4
4
  "type": "module",
5
5
  "description": "rtc web sdk of aliyun",
6
6
  "main": "dist/aliyun-rtc-sdk.js",