agora-rte-sdk 2.0.2 → 2.1.0
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/lib/core/decorator/lodash/index.d.ts +12 -2
- package/lib/core/processor/channel-msg/handler.d.ts +2 -0
- package/lib/core/rtc/adapter/electron/stats.d.ts +3 -2
- package/lib/core/rtc/adapter/web/stats.d.ts +3 -2
- package/lib/core/rtc/type.d.ts +4 -2
- package/lib/core/utils/error.d.ts +1 -0
- package/lib/core/utils/networkutils.d.ts +9 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/user/index.d.ts +2 -0
- package/package.json +4 -4
|
@@ -3,11 +3,21 @@ export declare const Lodash: {
|
|
|
3
3
|
debounced: (wait?: number | undefined, options?: DebounceSettings | undefined) => (proto: any, propertyName: string, descriptor: PropertyDescriptor) => {
|
|
4
4
|
configurable: boolean;
|
|
5
5
|
enumerable: boolean;
|
|
6
|
-
get(
|
|
6
|
+
get(this: {
|
|
7
|
+
__cacheMap: WeakMap<Object, any>;
|
|
8
|
+
}): any;
|
|
9
|
+
set(this: {
|
|
10
|
+
__cacheMap: WeakMap<Object, any>;
|
|
11
|
+
}, v: any): void;
|
|
7
12
|
};
|
|
8
13
|
throttled: (wait?: number | undefined, options?: ThrottleSettings | undefined) => (proto: any, propertyName: string, descriptor: PropertyDescriptor) => {
|
|
9
14
|
configurable: boolean;
|
|
10
15
|
enumerable: boolean;
|
|
11
|
-
get(
|
|
16
|
+
get(this: {
|
|
17
|
+
__cacheMap: WeakMap<Object, any>;
|
|
18
|
+
}): any;
|
|
19
|
+
set(this: {
|
|
20
|
+
__cacheMap: WeakMap<Object, any>;
|
|
21
|
+
}, v: any): void;
|
|
12
22
|
};
|
|
13
23
|
};
|
|
@@ -10,6 +10,7 @@ export declare enum AgoraRteChannelMessageCmd {
|
|
|
10
10
|
UserInfo = 21,
|
|
11
11
|
UserProperty = 22,
|
|
12
12
|
UserProperties = 23,
|
|
13
|
+
UserSubscribeInOut = 24,
|
|
13
14
|
StreamInOut = 40,
|
|
14
15
|
StreamsInOut = 41,
|
|
15
16
|
MessageExtension = 99
|
|
@@ -67,6 +68,7 @@ export declare class AgoraRteChannelMessageHandle extends AGEventEmitter {
|
|
|
67
68
|
private _handleChat;
|
|
68
69
|
private _mergeProperties;
|
|
69
70
|
private _handleRoomProperties;
|
|
71
|
+
private _handleUserSubscribe;
|
|
70
72
|
private _handleUserInOut;
|
|
71
73
|
private _handleUserInfo;
|
|
72
74
|
private _handleUserProperty;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AgoraNetworkQuality } from 'agora-electron-sdk/types/Api/native_type';
|
|
2
|
-
import {
|
|
2
|
+
import { NetworkStats } from '../../type';
|
|
3
3
|
export declare class RtcNetworkQualityElectron {
|
|
4
4
|
rtt?: number;
|
|
5
5
|
downlinkNetworkQuality: AgoraNetworkQuality;
|
|
@@ -9,6 +9,7 @@ export declare class RtcNetworkQualityElectron {
|
|
|
9
9
|
rxVideoPacketLoss: number;
|
|
10
10
|
cpu: number;
|
|
11
11
|
cpuTotal: number;
|
|
12
|
-
|
|
12
|
+
private _downlinkNetworkQualityClacInstance;
|
|
13
|
+
private _uplinkNetworkQualityClacInstance;
|
|
13
14
|
networkStats(): NetworkStats;
|
|
14
15
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NetworkStats } from '../../type';
|
|
2
2
|
export declare class RtcNetworkQualityWeb {
|
|
3
3
|
rtt?: number;
|
|
4
4
|
downlinkNetworkQuality: number;
|
|
@@ -6,6 +6,7 @@ export declare class RtcNetworkQualityWeb {
|
|
|
6
6
|
end2EndDelay: number;
|
|
7
7
|
txVideoPacketLoss: number;
|
|
8
8
|
rxVideoPacketLoss: number;
|
|
9
|
-
|
|
9
|
+
private _downlinkNetworkQualityClacInstance;
|
|
10
|
+
private _uplinkNetworkQualityClacInstance;
|
|
10
11
|
networkStats(): NetworkStats;
|
|
11
12
|
}
|
package/lib/core/rtc/type.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ export declare enum AGNetworkQuality {
|
|
|
3
3
|
bad = 1,
|
|
4
4
|
poor = 2,
|
|
5
5
|
good = 3,
|
|
6
|
-
great = 4
|
|
6
|
+
great = 4,
|
|
7
|
+
down = 5
|
|
7
8
|
}
|
|
8
9
|
export declare enum AGRteTrackErrorReason {
|
|
9
10
|
Unknown = 0,
|
|
@@ -11,7 +12,8 @@ export declare enum AGRteTrackErrorReason {
|
|
|
11
12
|
}
|
|
12
13
|
export interface NetworkStats {
|
|
13
14
|
packetLoss?: number;
|
|
14
|
-
|
|
15
|
+
downlinkNetworkQuality?: AGNetworkQuality;
|
|
16
|
+
uplinkNetworkQuality?: AGNetworkQuality;
|
|
15
17
|
cpu?: number;
|
|
16
18
|
cpuTotal?: number;
|
|
17
19
|
delay?: number;
|
|
@@ -37,6 +37,7 @@ export declare enum AGRteErrorCode {
|
|
|
37
37
|
RTE_ERR_CONFIG_NOT_READY = "100014",
|
|
38
38
|
RTE_ERR_RESTFUL_NETWORK_ERR = "100015",
|
|
39
39
|
RTE_ERR_RESTFUL_NETWORK_TIMEOUT_ERR = "100016",
|
|
40
|
+
RTE_ERR_LOCAL_USER_NOT_EXIST = "100017",
|
|
40
41
|
RTM_ERR_LOGGED_IN_ALREADY = "200000",
|
|
41
42
|
RTM_ERR_JOIN_FAILED = "200001",
|
|
42
43
|
RTM_ERR_LEAVE_FAILED = "200002",
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AGNetworkQuality } from '../..';
|
|
2
|
+
export declare class QualityCalc {
|
|
3
|
+
private quality;
|
|
4
|
+
private qualities;
|
|
5
|
+
static MAX_QUALITY_NUMBER: number;
|
|
6
|
+
private _updateQualities;
|
|
7
|
+
private _resetQualities;
|
|
8
|
+
toAGQuality(webquality?: number): AGNetworkQuality;
|
|
9
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { AgoraRteEngine } from './core/engine';
|
|
|
2
2
|
export { AgoraRteScene } from './scene';
|
|
3
3
|
export type { AgoraRteSceneJoinRTCOptions } from './scene';
|
|
4
4
|
export { AgoraRteEngineConfig, AgoraRteLogLevel, AgoraRteRuntimePlatform, RteLanguage, AgoraRegion, } from './configs';
|
|
5
|
+
export type { AgoraRteOptions } from './configs';
|
|
5
6
|
export type { AgoraComponentRegion } from './configs';
|
|
6
7
|
export type { AgoraRteServiceConfig } from './configs';
|
|
7
8
|
export { AgoraRtcVideoCanvas, AgoraRtcLocalVideoCanvas } from './core/rtc/canvas';
|