aliyun-rtc-sdk 6.11.7-beta.0 → 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.
- package/dist/aliyun-rtc-sdk.js +20 -20
- package/dist/plugins/beautyPlugin.d.ts +1 -2
- package/dist/types/index.d.ts +42 -8
- package/package.json +2 -3
|
@@ -2,7 +2,6 @@ import EventEmitter from 'eventemitter3';
|
|
|
2
2
|
import { LocalStream, IProfile } from 'aliyun-rts-sdk';
|
|
3
3
|
import { IVideoConstraints, IAudioConstraints } from 'media-device';
|
|
4
4
|
import { QueenEngineWorker } from 'aliyun-queen-engine';
|
|
5
|
-
import { BeautyParams } from 'aliyun-queen-engine/dist/QueenTypes';
|
|
6
5
|
|
|
7
6
|
declare enum AliRtcRawDataStreamType {
|
|
8
7
|
/** 相机流 */
|
|
@@ -184,7 +183,7 @@ declare abstract class AliRtcPlugin extends EventEmitter<AliRtcPluginListener> {
|
|
|
184
183
|
|
|
185
184
|
type AliRtcBeautyPluginOptions = {
|
|
186
185
|
licenseKey?: string;
|
|
187
|
-
} &
|
|
186
|
+
} & any;
|
|
188
187
|
declare class AliRtcBeautyPlugin extends AliRtcPlugin {
|
|
189
188
|
engineReady: boolean;
|
|
190
189
|
_queenEngine?: QueenEngineWorker;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -697,9 +697,12 @@ export declare class AliRtcEngine extends default_2<AliRtcEngineEventListener> {
|
|
|
697
697
|
/**
|
|
698
698
|
* @brief 采集偏好设置
|
|
699
699
|
* @param cameraCapturerConfiguration 偏好设置
|
|
700
|
-
*
|
|
701
|
-
*
|
|
702
|
-
*
|
|
700
|
+
* - width: 设置采集分辨率宽度 默认 1280
|
|
701
|
+
* - height: 设置采集分辨率高度 默认 720
|
|
702
|
+
* - frameRate: 设置采集帧率 默认 30
|
|
703
|
+
* - bitrate: 设置采集码率 默认 2000
|
|
704
|
+
* - cameraDirection: 设置采集方向,前置或后置摄像头
|
|
705
|
+
* - deviceId: 设置采集相机ID
|
|
703
706
|
*/
|
|
704
707
|
setCameraCapturerConfiguration(cameraCapturerConfiguration: AliEngineCameraCapturerConfiguration): Promise<void>;
|
|
705
708
|
/**
|
|
@@ -947,6 +950,8 @@ export declare class AliRtcEngine extends default_2<AliRtcEngineEventListener> {
|
|
|
947
950
|
* - 与虚拟背景为替换关系,如开启背景虚化开关后再次开启虚拟背景,则只有虚拟背景效果;
|
|
948
951
|
*/
|
|
949
952
|
enableBackgroundBlur(enable: boolean): void;
|
|
953
|
+
setParameter(parameter: string): void;
|
|
954
|
+
getParameter(): string;
|
|
950
955
|
}
|
|
951
956
|
|
|
952
957
|
declare interface AliRtcEngineConfig {
|
|
@@ -1162,6 +1167,18 @@ declare interface AliRtcEngineEventListener {
|
|
|
1162
1167
|
* @note 应该在收到该回调时弹出弹窗引导用户点击页面进行播放,用户点击页面后 SDK 会自动尝试播放
|
|
1163
1168
|
*/
|
|
1164
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;
|
|
1165
1182
|
/**
|
|
1166
1183
|
* rtc 传输数据统计
|
|
1167
1184
|
* @param stats 统计信息
|
|
@@ -2130,6 +2147,7 @@ declare class BizControl extends default_2<BizControlListener> {
|
|
|
2130
2147
|
private playoutVolume;
|
|
2131
2148
|
private audioVolumeIndicationInterval;
|
|
2132
2149
|
private indicationTimer;
|
|
2150
|
+
private parameter;
|
|
2133
2151
|
constructor(config: BizControlConfig);
|
|
2134
2152
|
private addSignalingManagerListener;
|
|
2135
2153
|
isAutoSubAudio(): boolean;
|
|
@@ -2248,6 +2266,8 @@ declare class BizControl extends default_2<BizControlListener> {
|
|
|
2248
2266
|
refreshAuthInfo(authInfo: AliRtcRefreshAuthInfo): void;
|
|
2249
2267
|
setEnableMediaExtensionMsg(enable: boolean): void;
|
|
2250
2268
|
setAudioRedEnabled(enable: boolean): void;
|
|
2269
|
+
setParameter(parameter: string): void;
|
|
2270
|
+
getParameter(): string;
|
|
2251
2271
|
}
|
|
2252
2272
|
|
|
2253
2273
|
declare interface BizControlConfig {
|
|
@@ -2277,6 +2297,8 @@ declare interface BizControlListener {
|
|
|
2277
2297
|
rtcStats: (stats: any) => void;
|
|
2278
2298
|
remoteAudioAutoPlayFail: (uid: string) => void;
|
|
2279
2299
|
remoteVideoAutoPlayFail: (uid: string, track: AliRtcVideoTrack) => void;
|
|
2300
|
+
remoteAudioPlayError: (uid: string, reason?: string) => void;
|
|
2301
|
+
remoteVideoPlayError: (uid: string, reason?: string) => void;
|
|
2280
2302
|
remoteSubscribeError: (error: AliRtcError) => void;
|
|
2281
2303
|
}
|
|
2282
2304
|
|
|
@@ -2531,6 +2553,7 @@ declare class LocalUser extends User {
|
|
|
2531
2553
|
private videoPubState;
|
|
2532
2554
|
private videoSmallPubState;
|
|
2533
2555
|
private screenPubState;
|
|
2556
|
+
private parameter;
|
|
2534
2557
|
constructor(config: LocalUserConfig);
|
|
2535
2558
|
get joined(): boolean;
|
|
2536
2559
|
get isPublishing(): boolean;
|
|
@@ -2704,7 +2727,7 @@ declare class LocalUser extends User {
|
|
|
2704
2727
|
getStats(): Promise<{
|
|
2705
2728
|
audio: AliRtcLocalAudioStats[];
|
|
2706
2729
|
video: AliRtcLocalVideoStats[];
|
|
2707
|
-
|
|
2730
|
+
candidate: any;
|
|
2708
2731
|
}>;
|
|
2709
2732
|
}
|
|
2710
2733
|
|
|
@@ -2715,6 +2738,9 @@ declare interface LocalUserConfig {
|
|
|
2715
2738
|
signalingManager: SignalingManager;
|
|
2716
2739
|
pluginManager: PluginManager;
|
|
2717
2740
|
audioVolumeIndicationInterval: number;
|
|
2741
|
+
parameter: {
|
|
2742
|
+
[key: string]: any;
|
|
2743
|
+
};
|
|
2718
2744
|
}
|
|
2719
2745
|
|
|
2720
2746
|
/**
|
|
@@ -2729,8 +2755,6 @@ declare class LogClient {
|
|
|
2729
2755
|
protected stsOpt?: any;
|
|
2730
2756
|
protected slsToken?: SLSSTSToken;
|
|
2731
2757
|
protected ossToken?: OSSSTSToken;
|
|
2732
|
-
protected uaParserResult: UAParser.IResult;
|
|
2733
|
-
constructor();
|
|
2734
2758
|
private createTracker;
|
|
2735
2759
|
start(info: AliRtcAuthInfo): void;
|
|
2736
2760
|
updateToken(slsToken: SLSSTSToken, ossToken?: OSSSTSToken): void;
|
|
@@ -3037,6 +3061,7 @@ declare class RemoteUser extends User {
|
|
|
3037
3061
|
private defaultVideoStreamType;
|
|
3038
3062
|
private audioMuted;
|
|
3039
3063
|
private playoutVolume;
|
|
3064
|
+
private playoutGainNode?;
|
|
3040
3065
|
private audioSubState;
|
|
3041
3066
|
private videoSubState;
|
|
3042
3067
|
private videoLargeSubState;
|
|
@@ -3044,6 +3069,7 @@ declare class RemoteUser extends User {
|
|
|
3044
3069
|
private screenSubState;
|
|
3045
3070
|
streamInfo: RemoteStreamInfo;
|
|
3046
3071
|
streamUrl: string;
|
|
3072
|
+
private parameter;
|
|
3047
3073
|
private monitorTimerId?;
|
|
3048
3074
|
private monitorDataCache;
|
|
3049
3075
|
private trackTraceIdMap;
|
|
@@ -3056,6 +3082,7 @@ declare class RemoteUser extends User {
|
|
|
3056
3082
|
setWantSubScreen(value: boolean): void;
|
|
3057
3083
|
setRemoteDefaultVideoStreamType(type: AliRtcVideoStreamType): void;
|
|
3058
3084
|
setAudioMuted(value: boolean): void;
|
|
3085
|
+
private handleAudioContextSuspended;
|
|
3059
3086
|
setPlayoutVolume(value: number): void;
|
|
3060
3087
|
getAudioMuted(): boolean;
|
|
3061
3088
|
get hasAudioTrack(): boolean;
|
|
@@ -3208,6 +3235,9 @@ declare interface RemoteUserConfig {
|
|
|
3208
3235
|
localUser?: LocalUser;
|
|
3209
3236
|
audioVolumeIndicationInterval: number;
|
|
3210
3237
|
playoutVolume: number;
|
|
3238
|
+
parameter: {
|
|
3239
|
+
[key: string]: any;
|
|
3240
|
+
};
|
|
3211
3241
|
}
|
|
3212
3242
|
|
|
3213
3243
|
declare interface RemoteUserMap {
|
|
@@ -3468,8 +3498,8 @@ declare class SLSReporter {
|
|
|
3468
3498
|
* 断开连接
|
|
3469
3499
|
*/
|
|
3470
3500
|
stop(): void;
|
|
3471
|
-
reportPublishMonitor(callId: string, traceId: string,
|
|
3472
|
-
reportSubscribeMonitor(callId: string, remoteId: string, traceId: string,
|
|
3501
|
+
reportPublishMonitor(callId: string, traceId: string, msid: string, track: MediaStreamTrack | undefined, stats: any[]): void;
|
|
3502
|
+
reportSubscribeMonitor(callId: string, remoteId: string, traceId: string, msid: string, stats: any[]): void;
|
|
3473
3503
|
reportNetworkMonitor(candidates: any[]): void;
|
|
3474
3504
|
/**
|
|
3475
3505
|
* 加入房间成功埋点
|
|
@@ -3651,6 +3681,8 @@ declare class StsManager extends default_2<StsManagerListener> {
|
|
|
3651
3681
|
private authInfo?;
|
|
3652
3682
|
private timer?;
|
|
3653
3683
|
private slsReporter;
|
|
3684
|
+
private expiration;
|
|
3685
|
+
private skipTime;
|
|
3654
3686
|
constructor(slsReporter: SLSReporter, env: AliRtcEnv);
|
|
3655
3687
|
refreshAuthInfo(authInfo: AliRtcAuthInfo): void;
|
|
3656
3688
|
private requestToken;
|
|
@@ -3755,6 +3787,8 @@ declare interface UserListener {
|
|
|
3755
3787
|
localDeviceException: (localDeviceType: AliRtcEngineLocalDeviceType, localDeviceExceptionType: AliRtcEngineLocalDeviceExceptionType, description: string) => void;
|
|
3756
3788
|
remoteAudioAutoPlayFail: (uid: string) => void;
|
|
3757
3789
|
remoteVideoAutoPlayFail: (uid: string, track: AliRtcVideoTrack) => void;
|
|
3790
|
+
remoteAudioPlayError: (uid: string, reason?: string) => void;
|
|
3791
|
+
remoteVideoPlayError: (uid: string, reason?: string) => void;
|
|
3758
3792
|
remoteSubscribeError: (error: AliRtcError) => void;
|
|
3759
3793
|
}
|
|
3760
3794
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aliyun-rtc-sdk",
|
|
3
|
-
"version": "6.11.7
|
|
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",
|
|
@@ -10,10 +10,9 @@
|
|
|
10
10
|
"@aliyun-sls/web-track-browser": "^0.3.5",
|
|
11
11
|
"aliyun-queen-engine": "^6.3.3",
|
|
12
12
|
"aliyun-rts-sdk": "2.8.1-beta.5",
|
|
13
|
-
"crypto-
|
|
13
|
+
"crypto-js": "^4.1.1",
|
|
14
14
|
"dateformat": "^5.0.3",
|
|
15
15
|
"eventemitter3": "^5.0.1",
|
|
16
|
-
"ua-parser-js": "^2.0.0-beta.3",
|
|
17
16
|
"uuid": "^10.0.0"
|
|
18
17
|
},
|
|
19
18
|
"homepage": "https://help.aliyun.com/zh/live/user-guide/quick-use",
|