aliyun-rtc-sdk 6.13.1-beta.0 → 6.13.2-beta.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/dist/aliyun-rtc-sdk.es.js +483 -465
- package/dist/aliyun-rtc-sdk.umd.js +15 -15
- package/dist/types/index.d.ts +12 -5
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1224,16 +1224,16 @@ declare interface AliRtcEngineEventListener {
|
|
|
1224
1224
|
* @deprecated 请使用 occurError
|
|
1225
1225
|
* @details 如果engine出现error,通过这个回调通知app
|
|
1226
1226
|
* @param error 错误类型,参考 {@link AliRtcError}
|
|
1227
|
-
* @param
|
|
1227
|
+
* @param uid 用户 Id,不一定存在
|
|
1228
1228
|
*/
|
|
1229
|
-
onOccurError: (error: AliRtcError) => void;
|
|
1229
|
+
onOccurError: (error: AliRtcError, uid?: string) => void;
|
|
1230
1230
|
/**
|
|
1231
1231
|
* @brief 错误通知
|
|
1232
1232
|
* @details 如果engine出现error,通过这个回调通知app
|
|
1233
1233
|
* @param error 错误类型,参考 {@link AliRtcError}
|
|
1234
|
-
* @param
|
|
1234
|
+
* @param uid 用户 Id,不一定存在
|
|
1235
1235
|
*/
|
|
1236
|
-
occurError: (error: AliRtcError) => void;
|
|
1236
|
+
occurError: (error: AliRtcError, uid?: string) => void;
|
|
1237
1237
|
/**
|
|
1238
1238
|
* @brief 收到数据通道消息
|
|
1239
1239
|
* @param uid 用户ID
|
|
@@ -1443,6 +1443,8 @@ export declare enum AliRtcErrorCode {
|
|
|
1443
1443
|
ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED = 16844116,
|
|
1444
1444
|
/** 订阅 DataChannel 失败 */
|
|
1445
1445
|
ERR_SDK_SUBSCRIBE_DATA_FAILED = 16844117,
|
|
1446
|
+
/** 订阅 DataChannel 过程中报错 */
|
|
1447
|
+
ERR_SDK_SUBSCRIBE_DATA_ERROR = 16844118,
|
|
1446
1448
|
/****************************************************
|
|
1447
1449
|
* 其他错误码
|
|
1448
1450
|
****************************************************/
|
|
@@ -1929,6 +1931,7 @@ export declare class AliRtcRemoteUserInfo {
|
|
|
1929
1931
|
get isVideoLargeSubscribing(): boolean;
|
|
1930
1932
|
get isVideoSmallSubscribing(): boolean;
|
|
1931
1933
|
get isScreenSubscribing(): boolean;
|
|
1934
|
+
get audioElement(): HTMLAudioElement | undefined;
|
|
1932
1935
|
}
|
|
1933
1936
|
|
|
1934
1937
|
declare interface AliRtcRemoteVideoStats {
|
|
@@ -2350,7 +2353,8 @@ declare interface BizControlListener {
|
|
|
2350
2353
|
remoteVideoAutoPlayFail: (uid: string, track: AliRtcVideoTrack) => void;
|
|
2351
2354
|
remoteAudioPlayError: (uid: string, reason?: string) => void;
|
|
2352
2355
|
remoteVideoPlayError: (uid: string, reason?: string) => void;
|
|
2353
|
-
remoteSubscribeError: (error: AliRtcError) => void;
|
|
2356
|
+
remoteSubscribeError: (error: AliRtcError, uid?: string) => void;
|
|
2357
|
+
occurError: (error: AliRtcError, uid?: string) => void;
|
|
2354
2358
|
remoteDataChannelMessage: (uid: string, message: AliRtcDataChannelMsg) => void;
|
|
2355
2359
|
}
|
|
2356
2360
|
|
|
@@ -3176,6 +3180,7 @@ declare class RemoteUser extends User {
|
|
|
3176
3180
|
setWantSubScreen(value: boolean): void;
|
|
3177
3181
|
setRemoteDefaultVideoStreamType(type: AliRtcVideoStreamType): void;
|
|
3178
3182
|
setAudioMuted(value: boolean): void;
|
|
3183
|
+
getAudioElement(): HTMLAudioElement | undefined;
|
|
3179
3184
|
private handleAudioContextSuspended;
|
|
3180
3185
|
setPlayoutVolume(value: number): void;
|
|
3181
3186
|
getAudioMuted(): boolean;
|
|
@@ -3266,6 +3271,7 @@ declare class RemoteUser extends User {
|
|
|
3266
3271
|
private clearStream;
|
|
3267
3272
|
private clearScreenStream;
|
|
3268
3273
|
private onDataChannelMessage;
|
|
3274
|
+
private onDataChannelError;
|
|
3269
3275
|
private subscribeDataChannel;
|
|
3270
3276
|
private subscribeStopDataChannel;
|
|
3271
3277
|
getRetryOptions(): RemoteSubscribeOptions | undefined;
|
|
@@ -3919,6 +3925,7 @@ declare interface UserListener {
|
|
|
3919
3925
|
remoteAudioPlayError: (uid: string, reason?: string) => void;
|
|
3920
3926
|
remoteVideoPlayError: (uid: string, reason?: string) => void;
|
|
3921
3927
|
remoteSubscribeError: (error: AliRtcError) => void;
|
|
3928
|
+
occurError: (error: AliRtcError) => void;
|
|
3922
3929
|
remoteDataChannelMessage: (uid: string, message: AliRtcDataChannelMsg) => void;
|
|
3923
3930
|
}
|
|
3924
3931
|
|