aliyun-rtc-sdk 6.12.1-beta.2 → 6.12.1-beta.4
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 +18 -18
- package/dist/types/index.d.ts +30 -13
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -135,7 +135,7 @@ export declare enum AliRtcDataMsgType {
|
|
|
135
135
|
|
|
136
136
|
declare type AliRtcDualVideoPluginOptions = VideoScalerOptions;
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
declare class AliRtcEngine_2 extends default_2<AliRtcEngineEventListener> {
|
|
139
139
|
/**
|
|
140
140
|
* @ignore
|
|
141
141
|
*/
|
|
@@ -174,7 +174,7 @@ export declare class AliRtcEngine extends default_2<AliRtcEngineEventListener> {
|
|
|
174
174
|
* @param key key 可选参与,用于创建多个实例
|
|
175
175
|
* @details 该方法为同步调用,以单例的形式提供对象创建。
|
|
176
176
|
*/
|
|
177
|
-
static getInstance(config?: AliRtcEngineConfig):
|
|
177
|
+
static getInstance(config?: AliRtcEngineConfig): AliRtcEngine_2;
|
|
178
178
|
static AliRtcSdkChannelProfile: typeof AliRtcSdkChannelProfile;
|
|
179
179
|
static AliRtcSdkClientRole: typeof AliRtcSdkClientRole;
|
|
180
180
|
static AliRtcVideoStreamType: typeof AliRtcVideoStreamType;
|
|
@@ -2201,6 +2201,8 @@ declare class BizControl extends default_2<BizControlListener> {
|
|
|
2201
2201
|
private indicationTimer;
|
|
2202
2202
|
private parameter;
|
|
2203
2203
|
constructor(config: BizControlConfig);
|
|
2204
|
+
private publishRetryOptionsHook;
|
|
2205
|
+
private subscribeRetryOptionsHook;
|
|
2204
2206
|
private addSignalingManagerListener;
|
|
2205
2207
|
isAutoSubAudio(): boolean;
|
|
2206
2208
|
setAutoSubAudio(value: boolean): void;
|
|
@@ -2387,9 +2389,6 @@ declare enum CodecType {
|
|
|
2387
2389
|
UNKNOWN = ""
|
|
2388
2390
|
}
|
|
2389
2391
|
|
|
2390
|
-
declare const _default: typeof AliRtcEngine;
|
|
2391
|
-
export default _default;
|
|
2392
|
-
|
|
2393
2392
|
declare interface DeviceStatus {
|
|
2394
2393
|
micOpen: boolean;
|
|
2395
2394
|
micInterrupted: boolean;
|
|
@@ -3266,6 +3265,7 @@ declare class RemoteUser extends User {
|
|
|
3266
3265
|
private onDataChannelMessage;
|
|
3267
3266
|
private subscribeDataChannel;
|
|
3268
3267
|
private subscribeStopDataChannel;
|
|
3268
|
+
getRetryOptions(): RemoteSubscribeOptions | undefined;
|
|
3269
3269
|
/**
|
|
3270
3270
|
* 尝试更新订阅
|
|
3271
3271
|
* 1. 需要新增订阅的情况:想要订阅 & 没有正在订阅 & 远端有流
|
|
@@ -3386,16 +3386,21 @@ declare class RtsManager extends default_2<RtsManagerEventListener> {
|
|
|
3386
3386
|
private audioRedEnabled;
|
|
3387
3387
|
private localStreamManager;
|
|
3388
3388
|
private slsReporter;
|
|
3389
|
+
private _rtsReconnecting;
|
|
3390
|
+
private _rtsPeerConnectionType;
|
|
3389
3391
|
private connecting;
|
|
3390
3392
|
private connected;
|
|
3391
3393
|
private _pcTraceId;
|
|
3392
3394
|
private _localJoinTime;
|
|
3395
|
+
private publishRetryHook?;
|
|
3396
|
+
private subscribeRetryOptionsHook?;
|
|
3393
3397
|
private connectionResolve?;
|
|
3394
|
-
connectingPromise
|
|
3398
|
+
private connectingPromise?;
|
|
3395
3399
|
private dcResolve?;
|
|
3396
|
-
dcConnectingPromise
|
|
3400
|
+
private dcConnectingPromise?;
|
|
3397
3401
|
private _publishingTracks;
|
|
3398
|
-
constructor(localStreamManager: LocalStreamManager, slsReporter: SLSReporter);
|
|
3402
|
+
constructor(localStreamManager: LocalStreamManager, slsReporter: SLSReporter, publishRetryHook: () => void, subscribeRetryOptionsHook: () => RemoteSubscribeOptions | undefined);
|
|
3403
|
+
private addRTSListener;
|
|
3399
3404
|
get pcTraceId(): string;
|
|
3400
3405
|
set localJoinTime(time: number);
|
|
3401
3406
|
setEncodedInsertableStreams(enable: boolean): void;
|
|
@@ -3414,7 +3419,7 @@ declare class RtsManager extends default_2<RtsManagerEventListener> {
|
|
|
3414
3419
|
getPublishAudioStats(streamUrl: string, msid?: string): Promise<unknown>;
|
|
3415
3420
|
publishAdd(streamUrl: string, stream: LocalStream, callId: string, extra?: PublishExtraParams, isResume?: boolean, waitSender?: boolean, reason?: PublishReason): Promise<string>;
|
|
3416
3421
|
publishDelete(streamUrl: string, options: PublishOptions): Promise<string>;
|
|
3417
|
-
publishReplace(streamUrl: string, stream: LocalStream, extra?: PublishExtraParams): Promise<
|
|
3422
|
+
publishReplace(streamUrl: string, stream: LocalStream, extra?: PublishExtraParams): Promise<string>;
|
|
3418
3423
|
publishStop(streamUrl: string): Promise<string>;
|
|
3419
3424
|
publishAddDataChannel(streamUrl: string): Promise<any>;
|
|
3420
3425
|
publishStopDataChannel(streamUrl: string, datachannel: any): Promise<void>;
|
|
@@ -3444,13 +3449,18 @@ declare class RtsManager extends default_2<RtsManagerEventListener> {
|
|
|
3444
3449
|
}
|
|
3445
3450
|
|
|
3446
3451
|
declare interface RtsManagerEventListener {
|
|
3447
|
-
reconnecting: () => {};
|
|
3452
|
+
reconnecting: (type: RtsPeerConnectionType) => {};
|
|
3448
3453
|
disconnected: () => {};
|
|
3449
|
-
connected: () => {};
|
|
3454
|
+
connected: (isReconnected: boolean, type: RtsPeerConnectionType) => {};
|
|
3450
3455
|
subscribeexceeds: () => {};
|
|
3451
3456
|
seimessage: (url: string, payloadType: number, data: ArrayBuffer) => {};
|
|
3452
3457
|
}
|
|
3453
3458
|
|
|
3459
|
+
declare enum RtsPeerConnectionType {
|
|
3460
|
+
PUBLISH = "publish",
|
|
3461
|
+
SUBSCRIBE = "subscribe"
|
|
3462
|
+
}
|
|
3463
|
+
|
|
3454
3464
|
declare class SignalingManager extends default_2<RoomServerListener> {
|
|
3455
3465
|
/**
|
|
3456
3466
|
* @ignore
|
|
@@ -3592,7 +3602,7 @@ declare class SLSReporter {
|
|
|
3592
3602
|
private static staticClient;
|
|
3593
3603
|
private static getLogClient;
|
|
3594
3604
|
static reportOSSUpload(sessionId: string, date: string, responseCode?: number): void;
|
|
3595
|
-
constructor(engine:
|
|
3605
|
+
constructor(engine: WrappedAliRtcEngine);
|
|
3596
3606
|
/**
|
|
3597
3607
|
* 开始建立连接
|
|
3598
3608
|
* @param authInfo
|
|
@@ -3722,7 +3732,7 @@ declare class SLSReporter {
|
|
|
3722
3732
|
reportSDKCreated(startTs: number): void;
|
|
3723
3733
|
reportJoinInvoked(authInfo: AliRtcAuthInfo): void;
|
|
3724
3734
|
reportJoinResult(error: any): void;
|
|
3725
|
-
reportSTSResult(code: number): void;
|
|
3735
|
+
reportSTSResult(code: number, startTs: number): void;
|
|
3726
3736
|
reportLeaveInvoked(): void;
|
|
3727
3737
|
reportSEIMessage(payloadType: number, length: number, repeatCount: number, delay: number, isKey: boolean): void;
|
|
3728
3738
|
/**
|
|
@@ -3810,6 +3820,7 @@ declare interface SubConfig {
|
|
|
3810
3820
|
}
|
|
3811
3821
|
|
|
3812
3822
|
declare type SubscribeOptions = StreamOptions & {
|
|
3823
|
+
aMsid?: string;
|
|
3813
3824
|
vMsid?: string;
|
|
3814
3825
|
};
|
|
3815
3826
|
|
|
@@ -3932,4 +3943,10 @@ declare enum VideoStreamSource {
|
|
|
3932
3943
|
Image = 2
|
|
3933
3944
|
}
|
|
3934
3945
|
|
|
3946
|
+
declare const WrappedAliRtcEngine: typeof AliRtcEngine_2;
|
|
3947
|
+
|
|
3948
|
+
declare type WrappedAliRtcEngine = InstanceType<typeof AliRtcEngine_2>;
|
|
3949
|
+
export { WrappedAliRtcEngine as AliRtcEngine }
|
|
3950
|
+
export default WrappedAliRtcEngine;
|
|
3951
|
+
|
|
3935
3952
|
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aliyun-rtc-sdk",
|
|
3
|
-
"version": "6.12.1-beta.
|
|
3
|
+
"version": "6.12.1-beta.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "rtc web sdk of aliyun",
|
|
6
6
|
"main": "dist/aliyun-rtc-sdk.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"@aliyun-sls/web-sts-plugin": "^0.3.5",
|
|
10
10
|
"@aliyun-sls/web-track-browser": "^0.3.5",
|
|
11
11
|
"aliyun-queen-engine": "^6.3.3",
|
|
12
|
-
"aliyun-rts-sdk": "2.9.
|
|
12
|
+
"aliyun-rts-sdk": "2.9.2-beta.2",
|
|
13
13
|
"crypto-js": "^4.1.1",
|
|
14
14
|
"dateformat": "^5.0.3",
|
|
15
15
|
"eventemitter3": "^5.0.1",
|