aliyun-rtc-sdk 7.1.4 → 7.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/dist/aliyun-rtc-sdk.es.js +6939 -6896
- package/dist/aliyun-rtc-sdk.umd.js +17 -17
- package/dist/plugins/audioProcessPlugin.d.ts +1478 -1467
- package/dist/plugins/audioProcessPlugin.js +98 -98
- package/dist/types/index.d.ts +14 -3
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -369,6 +369,7 @@ declare class AliRtcEngine_2 extends default_2<AliRtcEngineEventListener> {
|
|
|
369
369
|
*/
|
|
370
370
|
setAudioOnlyMode(audioOnly: boolean): void;
|
|
371
371
|
setAudioRedEnabled(audioRedEnabled: boolean): void;
|
|
372
|
+
setVideoCodec(videoCodec: CodecType): void;
|
|
372
373
|
/**
|
|
373
374
|
* 设定鉴权信息过期事件定时器
|
|
374
375
|
* @param expireTimestamp 鉴权信息过期时间
|
|
@@ -2415,6 +2416,7 @@ declare class BizControl extends default_2<BizControlListener> {
|
|
|
2415
2416
|
refreshAuthInfo(authInfo: AliRtcRefreshAuthInfo): void;
|
|
2416
2417
|
setEnableMediaExtensionMsg(enable: boolean): void;
|
|
2417
2418
|
setAudioRedEnabled(enable: boolean): void;
|
|
2419
|
+
setVideoCodec(codec: CodecType): void;
|
|
2418
2420
|
setParameter(parameter: string): void;
|
|
2419
2421
|
private setupAudioProcessingPluginIfNeeded;
|
|
2420
2422
|
getParameter(): string;
|
|
@@ -2483,6 +2485,8 @@ declare enum CmdType {
|
|
|
2483
2485
|
declare enum CodecType {
|
|
2484
2486
|
OPUS = "opus",
|
|
2485
2487
|
H264 = "H264",
|
|
2488
|
+
H265 = "H265",
|
|
2489
|
+
AV1 = "AV1",
|
|
2486
2490
|
UNKNOWN = ""
|
|
2487
2491
|
}
|
|
2488
2492
|
|
|
@@ -2601,6 +2605,7 @@ declare interface JoinInfo {
|
|
|
2601
2605
|
|
|
2602
2606
|
declare interface JoinResult {
|
|
2603
2607
|
l1ip?: string;
|
|
2608
|
+
l1subip?: string;
|
|
2604
2609
|
pushstreamurl: string;
|
|
2605
2610
|
tid: string;
|
|
2606
2611
|
users: JoinInfo[];
|
|
@@ -2776,7 +2781,6 @@ declare class LocalUser extends User {
|
|
|
2776
2781
|
constructor(config: LocalUserConfig);
|
|
2777
2782
|
get url(): string;
|
|
2778
2783
|
set url(value: string);
|
|
2779
|
-
set preferredPubL1Ip(value: string);
|
|
2780
2784
|
get joined(): boolean;
|
|
2781
2785
|
get isPublishing(): boolean;
|
|
2782
2786
|
get publishStreams(): PublishStreamInfo;
|
|
@@ -3916,6 +3920,7 @@ declare class RtsManager extends default_2<RtsManagerEventListener> {
|
|
|
3916
3920
|
private _rtsPeerConnectionType;
|
|
3917
3921
|
private connecting;
|
|
3918
3922
|
private connected;
|
|
3923
|
+
private rtsDisconnected;
|
|
3919
3924
|
private _pcTraceId;
|
|
3920
3925
|
private _localJoinTime;
|
|
3921
3926
|
private connectionResolve?;
|
|
@@ -3926,6 +3931,7 @@ declare class RtsManager extends default_2<RtsManagerEventListener> {
|
|
|
3926
3931
|
private _publishingTracks;
|
|
3927
3932
|
private parameter;
|
|
3928
3933
|
preferredPubL1Ip?: string;
|
|
3934
|
+
preferredSubL1Ip?: string;
|
|
3929
3935
|
constructor(localStreamManager: LocalStreamManager, slsReporter: SLSReporter, parameter: Parameter);
|
|
3930
3936
|
private addRTSListener;
|
|
3931
3937
|
/**
|
|
@@ -3936,6 +3942,10 @@ declare class RtsManager extends default_2<RtsManagerEventListener> {
|
|
|
3936
3942
|
get pcTraceId(): string;
|
|
3937
3943
|
set localJoinTime(time: number);
|
|
3938
3944
|
setEncodedInsertableStreams(enable: boolean): void;
|
|
3945
|
+
setReceiverPreferredVideoCodecH265(): void;
|
|
3946
|
+
setSenderPreferredVideoCodecH265(): void;
|
|
3947
|
+
supportVideoCodec(codec: CodecType): boolean | undefined;
|
|
3948
|
+
changeVideoCodec(codec: CodecType): void;
|
|
3939
3949
|
setAudioRedEnabled(enable: boolean): void;
|
|
3940
3950
|
clear(): void;
|
|
3941
3951
|
private startConnect;
|
|
@@ -3962,10 +3972,11 @@ declare class RtsManager extends default_2<RtsManagerEventListener> {
|
|
|
3962
3972
|
* @returns {Omit<ISignalConfig | ISubConfigItem, 'url'>}
|
|
3963
3973
|
*/
|
|
3964
3974
|
private getSubConfig;
|
|
3975
|
+
private handleHTTPConfig;
|
|
3965
3976
|
private httpSubscribe;
|
|
3966
3977
|
private subscribeAdd;
|
|
3967
3978
|
subscribeDelete(subscribeOptions: RemoteSubscribeOptions): Promise<ISubDeleteResult | undefined>;
|
|
3968
|
-
|
|
3979
|
+
subscribeStop(streamUrl: string): Promise<void>;
|
|
3969
3980
|
subscribeAddDataChannel(streamUrl: string): Promise<any>;
|
|
3970
3981
|
subscribeStopDatachannel(streamUrl: string, datachannel: any): Promise<any>;
|
|
3971
3982
|
publish(streamUrl: string, callId: string, isResume?: boolean, reason?: PublishReason): Promise<{
|
|
@@ -3973,7 +3984,7 @@ declare class RtsManager extends default_2<RtsManagerEventListener> {
|
|
|
3973
3984
|
l1ip?: string;
|
|
3974
3985
|
}>;
|
|
3975
3986
|
private reportSubscribeLatency;
|
|
3976
|
-
subscribe(remoteSubscribeOptions: RemoteSubscribeOptions, reason: SubscribeReason, callId: string, remoteCallId: string, startTs: number): Promise<any>;
|
|
3987
|
+
subscribe(remoteSubscribeOptions: RemoteSubscribeOptions, reason: SubscribeReason, callId: string, remoteCallId: string, startTs: number, retryCount?: number): Promise<any>;
|
|
3977
3988
|
getSubscribeVideoStats(streamUrl: string, msid?: string): Promise<unknown>;
|
|
3978
3989
|
getSubscribeAudioStats(streamUrl: string, msid?: string): Promise<unknown>;
|
|
3979
3990
|
getStreamByMsid(config: any): LocalStream | RemoteStream;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aliyun-rtc-sdk",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "rtc web sdk of aliyun",
|
|
6
6
|
"main": "dist/aliyun-rtc-sdk.umd.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"@aliyun-sls/web-sts-plugin": "^0.3.5",
|
|
11
11
|
"@aliyun-sls/web-track-browser": "^0.3.5",
|
|
12
12
|
"aliyun-queen-engine": "^6.3.14",
|
|
13
|
-
"aliyun-rts-sdk": "2.13.
|
|
13
|
+
"aliyun-rts-sdk": "2.13.1",
|
|
14
14
|
"crypto-js": "^4.1.1",
|
|
15
15
|
"dateformat": "^5.0.3",
|
|
16
16
|
"eventemitter3": "^5.0.1",
|