aliyun-rtc-sdk 6.12.1-beta.2 → 6.12.1-beta.3
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 +17 -17
- package/dist/types/index.d.ts +12 -7
- 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;
|
|
@@ -2387,9 +2387,6 @@ declare enum CodecType {
|
|
|
2387
2387
|
UNKNOWN = ""
|
|
2388
2388
|
}
|
|
2389
2389
|
|
|
2390
|
-
declare const _default: typeof AliRtcEngine;
|
|
2391
|
-
export default _default;
|
|
2392
|
-
|
|
2393
2390
|
declare interface DeviceStatus {
|
|
2394
2391
|
micOpen: boolean;
|
|
2395
2392
|
micInterrupted: boolean;
|
|
@@ -3396,6 +3393,7 @@ declare class RtsManager extends default_2<RtsManagerEventListener> {
|
|
|
3396
3393
|
dcConnectingPromise?: Promise<unknown>;
|
|
3397
3394
|
private _publishingTracks;
|
|
3398
3395
|
constructor(localStreamManager: LocalStreamManager, slsReporter: SLSReporter);
|
|
3396
|
+
private addRTSListener;
|
|
3399
3397
|
get pcTraceId(): string;
|
|
3400
3398
|
set localJoinTime(time: number);
|
|
3401
3399
|
setEncodedInsertableStreams(enable: boolean): void;
|
|
@@ -3414,7 +3412,7 @@ declare class RtsManager extends default_2<RtsManagerEventListener> {
|
|
|
3414
3412
|
getPublishAudioStats(streamUrl: string, msid?: string): Promise<unknown>;
|
|
3415
3413
|
publishAdd(streamUrl: string, stream: LocalStream, callId: string, extra?: PublishExtraParams, isResume?: boolean, waitSender?: boolean, reason?: PublishReason): Promise<string>;
|
|
3416
3414
|
publishDelete(streamUrl: string, options: PublishOptions): Promise<string>;
|
|
3417
|
-
publishReplace(streamUrl: string, stream: LocalStream, extra?: PublishExtraParams): Promise<
|
|
3415
|
+
publishReplace(streamUrl: string, stream: LocalStream, extra?: PublishExtraParams): Promise<string>;
|
|
3418
3416
|
publishStop(streamUrl: string): Promise<string>;
|
|
3419
3417
|
publishAddDataChannel(streamUrl: string): Promise<any>;
|
|
3420
3418
|
publishStopDataChannel(streamUrl: string, datachannel: any): Promise<void>;
|
|
@@ -3592,7 +3590,7 @@ declare class SLSReporter {
|
|
|
3592
3590
|
private static staticClient;
|
|
3593
3591
|
private static getLogClient;
|
|
3594
3592
|
static reportOSSUpload(sessionId: string, date: string, responseCode?: number): void;
|
|
3595
|
-
constructor(engine:
|
|
3593
|
+
constructor(engine: WrappedAliRtcEngine);
|
|
3596
3594
|
/**
|
|
3597
3595
|
* 开始建立连接
|
|
3598
3596
|
* @param authInfo
|
|
@@ -3810,6 +3808,7 @@ declare interface SubConfig {
|
|
|
3810
3808
|
}
|
|
3811
3809
|
|
|
3812
3810
|
declare type SubscribeOptions = StreamOptions & {
|
|
3811
|
+
aMsid?: string;
|
|
3813
3812
|
vMsid?: string;
|
|
3814
3813
|
};
|
|
3815
3814
|
|
|
@@ -3932,4 +3931,10 @@ declare enum VideoStreamSource {
|
|
|
3932
3931
|
Image = 2
|
|
3933
3932
|
}
|
|
3934
3933
|
|
|
3934
|
+
declare const WrappedAliRtcEngine: typeof AliRtcEngine_2;
|
|
3935
|
+
|
|
3936
|
+
declare type WrappedAliRtcEngine = InstanceType<typeof AliRtcEngine_2>;
|
|
3937
|
+
export { WrappedAliRtcEngine as AliRtcEngine }
|
|
3938
|
+
export default WrappedAliRtcEngine;
|
|
3939
|
+
|
|
3935
3940
|
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.3",
|
|
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.1
|
|
12
|
+
"aliyun-rts-sdk": "2.9.1",
|
|
13
13
|
"crypto-js": "^4.1.1",
|
|
14
14
|
"dateformat": "^5.0.3",
|
|
15
15
|
"eventemitter3": "^5.0.1",
|