aliyun-rtc-sdk 6.11.7-beta.0 → 6.11.7-beta.1
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 +25 -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 {
|
|
@@ -2130,6 +2135,7 @@ declare class BizControl extends default_2<BizControlListener> {
|
|
|
2130
2135
|
private playoutVolume;
|
|
2131
2136
|
private audioVolumeIndicationInterval;
|
|
2132
2137
|
private indicationTimer;
|
|
2138
|
+
private parameter;
|
|
2133
2139
|
constructor(config: BizControlConfig);
|
|
2134
2140
|
private addSignalingManagerListener;
|
|
2135
2141
|
isAutoSubAudio(): boolean;
|
|
@@ -2248,6 +2254,8 @@ declare class BizControl extends default_2<BizControlListener> {
|
|
|
2248
2254
|
refreshAuthInfo(authInfo: AliRtcRefreshAuthInfo): void;
|
|
2249
2255
|
setEnableMediaExtensionMsg(enable: boolean): void;
|
|
2250
2256
|
setAudioRedEnabled(enable: boolean): void;
|
|
2257
|
+
setParameter(parameter: string): void;
|
|
2258
|
+
getParameter(): string;
|
|
2251
2259
|
}
|
|
2252
2260
|
|
|
2253
2261
|
declare interface BizControlConfig {
|
|
@@ -2531,6 +2539,7 @@ declare class LocalUser extends User {
|
|
|
2531
2539
|
private videoPubState;
|
|
2532
2540
|
private videoSmallPubState;
|
|
2533
2541
|
private screenPubState;
|
|
2542
|
+
private parameter;
|
|
2534
2543
|
constructor(config: LocalUserConfig);
|
|
2535
2544
|
get joined(): boolean;
|
|
2536
2545
|
get isPublishing(): boolean;
|
|
@@ -2704,7 +2713,7 @@ declare class LocalUser extends User {
|
|
|
2704
2713
|
getStats(): Promise<{
|
|
2705
2714
|
audio: AliRtcLocalAudioStats[];
|
|
2706
2715
|
video: AliRtcLocalVideoStats[];
|
|
2707
|
-
|
|
2716
|
+
candidate: any;
|
|
2708
2717
|
}>;
|
|
2709
2718
|
}
|
|
2710
2719
|
|
|
@@ -2715,6 +2724,9 @@ declare interface LocalUserConfig {
|
|
|
2715
2724
|
signalingManager: SignalingManager;
|
|
2716
2725
|
pluginManager: PluginManager;
|
|
2717
2726
|
audioVolumeIndicationInterval: number;
|
|
2727
|
+
parameter: {
|
|
2728
|
+
[key: string]: any;
|
|
2729
|
+
};
|
|
2718
2730
|
}
|
|
2719
2731
|
|
|
2720
2732
|
/**
|
|
@@ -2729,8 +2741,6 @@ declare class LogClient {
|
|
|
2729
2741
|
protected stsOpt?: any;
|
|
2730
2742
|
protected slsToken?: SLSSTSToken;
|
|
2731
2743
|
protected ossToken?: OSSSTSToken;
|
|
2732
|
-
protected uaParserResult: UAParser.IResult;
|
|
2733
|
-
constructor();
|
|
2734
2744
|
private createTracker;
|
|
2735
2745
|
start(info: AliRtcAuthInfo): void;
|
|
2736
2746
|
updateToken(slsToken: SLSSTSToken, ossToken?: OSSSTSToken): void;
|
|
@@ -3037,6 +3047,7 @@ declare class RemoteUser extends User {
|
|
|
3037
3047
|
private defaultVideoStreamType;
|
|
3038
3048
|
private audioMuted;
|
|
3039
3049
|
private playoutVolume;
|
|
3050
|
+
private playoutGainNode?;
|
|
3040
3051
|
private audioSubState;
|
|
3041
3052
|
private videoSubState;
|
|
3042
3053
|
private videoLargeSubState;
|
|
@@ -3044,6 +3055,7 @@ declare class RemoteUser extends User {
|
|
|
3044
3055
|
private screenSubState;
|
|
3045
3056
|
streamInfo: RemoteStreamInfo;
|
|
3046
3057
|
streamUrl: string;
|
|
3058
|
+
private parameter;
|
|
3047
3059
|
private monitorTimerId?;
|
|
3048
3060
|
private monitorDataCache;
|
|
3049
3061
|
private trackTraceIdMap;
|
|
@@ -3208,6 +3220,9 @@ declare interface RemoteUserConfig {
|
|
|
3208
3220
|
localUser?: LocalUser;
|
|
3209
3221
|
audioVolumeIndicationInterval: number;
|
|
3210
3222
|
playoutVolume: number;
|
|
3223
|
+
parameter: {
|
|
3224
|
+
[key: string]: any;
|
|
3225
|
+
};
|
|
3211
3226
|
}
|
|
3212
3227
|
|
|
3213
3228
|
declare interface RemoteUserMap {
|
|
@@ -3468,8 +3483,8 @@ declare class SLSReporter {
|
|
|
3468
3483
|
* 断开连接
|
|
3469
3484
|
*/
|
|
3470
3485
|
stop(): void;
|
|
3471
|
-
reportPublishMonitor(callId: string, traceId: string,
|
|
3472
|
-
reportSubscribeMonitor(callId: string, remoteId: string, traceId: string,
|
|
3486
|
+
reportPublishMonitor(callId: string, traceId: string, msid: string, track: MediaStreamTrack | undefined, stats: any[]): void;
|
|
3487
|
+
reportSubscribeMonitor(callId: string, remoteId: string, traceId: string, msid: string, stats: any[]): void;
|
|
3473
3488
|
reportNetworkMonitor(candidates: any[]): void;
|
|
3474
3489
|
/**
|
|
3475
3490
|
* 加入房间成功埋点
|
|
@@ -3651,6 +3666,8 @@ declare class StsManager extends default_2<StsManagerListener> {
|
|
|
3651
3666
|
private authInfo?;
|
|
3652
3667
|
private timer?;
|
|
3653
3668
|
private slsReporter;
|
|
3669
|
+
private expiration;
|
|
3670
|
+
private skipTime;
|
|
3654
3671
|
constructor(slsReporter: SLSReporter, env: AliRtcEnv);
|
|
3655
3672
|
refreshAuthInfo(authInfo: AliRtcAuthInfo): void;
|
|
3656
3673
|
private requestToken;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aliyun-rtc-sdk",
|
|
3
|
-
"version": "6.11.7-beta.
|
|
3
|
+
"version": "6.11.7-beta.1",
|
|
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",
|