@rongcloud/plugin-rtc 5.4.7-alpha.4 → 5.4.7
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/core/room/RCAudioLevelReport.d.ts +2 -0
- package/dist/core/webrtc/RCRTCPeerConnection.d.ts +10 -2
- package/dist/index.d.ts +12 -4
- package/dist/index.esm.js +15 -19394
- package/dist/index.js +15 -19426
- package/dist/index.umd.js +15 -19430
- package/package.json +2 -2
|
@@ -10,6 +10,8 @@ export default class RCAudioLevelReport {
|
|
|
10
10
|
* 通知业务端音量 > 0 的数据,数组每一项包含 track、audioLevel
|
|
11
11
|
*/
|
|
12
12
|
private _audioLevelReport;
|
|
13
|
+
private startAutoExecute;
|
|
14
|
+
private stopAutoExecute;
|
|
13
15
|
onAudioLevelChange(handler: IAudioLevelChangeHandler | null, gap: number): void;
|
|
14
16
|
clearAudioLevelReportTimer(): void;
|
|
15
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IRCRTCReportListener } from '../interfaces';
|
|
1
|
+
import { IRCRTCReportListener, IInnerRCRTCStateReport } from '../interfaces';
|
|
2
2
|
import PolarisReporter from '../PolarisReporter';
|
|
3
3
|
import { RCLocalTrack } from '../tracks/RCLocalTrack';
|
|
4
4
|
import { RCRemoteTrack } from '../tracks/RCRemoteTrack';
|
|
@@ -33,6 +33,8 @@ export default class RCRTCPeerConnection extends EventEmitter {
|
|
|
33
33
|
private _reportStatsTimer;
|
|
34
34
|
private _reportR3R4ToPolarisTimer;
|
|
35
35
|
private _isDestroyed;
|
|
36
|
+
private _reportStatsData?;
|
|
37
|
+
private _originReportStatsData?;
|
|
36
38
|
constructor(
|
|
37
39
|
/**
|
|
38
40
|
* peerConnection 对应名称
|
|
@@ -53,6 +55,8 @@ export default class RCRTCPeerConnection extends EventEmitter {
|
|
|
53
55
|
getName(): string;
|
|
54
56
|
getLocalTracks(): RCLocalTrack[];
|
|
55
57
|
private _onConnectionStateChange;
|
|
58
|
+
private startAutoExecute;
|
|
59
|
+
private stopAutoExecute;
|
|
56
60
|
private _onICEConnectionStateChange;
|
|
57
61
|
private _onTrackReady;
|
|
58
62
|
/**
|
|
@@ -87,7 +91,7 @@ export default class RCRTCPeerConnection extends EventEmitter {
|
|
|
87
91
|
* @returns 返回格式化后的数据
|
|
88
92
|
*/
|
|
89
93
|
private _getStatsData;
|
|
90
|
-
getAudioLevelReportData(): Promise<{
|
|
94
|
+
getAudioLevelReportData(gap?: number): Promise<{
|
|
91
95
|
trackId: string;
|
|
92
96
|
audioLevel: number | null;
|
|
93
97
|
}[] | undefined>;
|
|
@@ -96,6 +100,10 @@ export default class RCRTCPeerConnection extends EventEmitter {
|
|
|
96
100
|
* @todo
|
|
97
101
|
*/
|
|
98
102
|
private _reportHandle;
|
|
103
|
+
/**
|
|
104
|
+
* 获取缓存的本地质量数据
|
|
105
|
+
*/
|
|
106
|
+
_getCacheStatsData(): IInnerRCRTCStateReport | null | undefined;
|
|
99
107
|
/**
|
|
100
108
|
* 北极星上报 R3、R4 数据
|
|
101
109
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCRTC - v5.4.7
|
|
3
|
-
* CommitId -
|
|
4
|
-
* Tue Sep
|
|
2
|
+
* RCRTC - v5.4.7
|
|
3
|
+
* CommitId - 25ac42535d0f142de4179ee5b74a714f361e1712
|
|
4
|
+
* Tue Sep 20 2022 21:34:29 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
import { EventEmitter, RTCMode, IRuntime, RTCPluginContext, IJoinRTCRoomData, IReceivedMessage, ErrorCode, RTCJoinType, IRTCUserData, KVString, IServerRTCRoomEntry, LogLevel, IRTCJoinedInfo, IPluginGenerator } from '@rongcloud/engine';
|
|
@@ -2517,6 +2517,8 @@ declare class RCRTCPeerConnection extends EventEmitter {
|
|
|
2517
2517
|
private _reportStatsTimer;
|
|
2518
2518
|
private _reportR3R4ToPolarisTimer;
|
|
2519
2519
|
private _isDestroyed;
|
|
2520
|
+
private _reportStatsData?;
|
|
2521
|
+
private _originReportStatsData?;
|
|
2520
2522
|
constructor(
|
|
2521
2523
|
/**
|
|
2522
2524
|
* peerConnection 对应名称
|
|
@@ -2537,6 +2539,8 @@ declare class RCRTCPeerConnection extends EventEmitter {
|
|
|
2537
2539
|
getName(): string;
|
|
2538
2540
|
getLocalTracks(): RCLocalTrack[];
|
|
2539
2541
|
private _onConnectionStateChange;
|
|
2542
|
+
private startAutoExecute;
|
|
2543
|
+
private stopAutoExecute;
|
|
2540
2544
|
private _onICEConnectionStateChange;
|
|
2541
2545
|
private _onTrackReady;
|
|
2542
2546
|
/**
|
|
@@ -2571,7 +2575,7 @@ declare class RCRTCPeerConnection extends EventEmitter {
|
|
|
2571
2575
|
* @returns 返回格式化后的数据
|
|
2572
2576
|
*/
|
|
2573
2577
|
private _getStatsData;
|
|
2574
|
-
getAudioLevelReportData(): Promise<{
|
|
2578
|
+
getAudioLevelReportData(gap?: number): Promise<{
|
|
2575
2579
|
trackId: string;
|
|
2576
2580
|
audioLevel: number | null;
|
|
2577
2581
|
}[] | undefined>;
|
|
@@ -2580,6 +2584,10 @@ declare class RCRTCPeerConnection extends EventEmitter {
|
|
|
2580
2584
|
* @todo
|
|
2581
2585
|
*/
|
|
2582
2586
|
private _reportHandle;
|
|
2587
|
+
/**
|
|
2588
|
+
* 获取缓存的本地质量数据
|
|
2589
|
+
*/
|
|
2590
|
+
_getCacheStatsData(): IInnerRCRTCStateReport | null | undefined;
|
|
2583
2591
|
/**
|
|
2584
2592
|
* 北极星上报 R3、R4 数据
|
|
2585
2593
|
*/
|