@telnyx/webrtc 2.25.21 → 2.25.23
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.
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
import { ILogEntry } from '../../../Modules/Verto/util/LogCollector';
|
|
2
|
+
interface ICECandidateInfo {
|
|
3
|
+
address?: string;
|
|
4
|
+
port?: number;
|
|
5
|
+
candidateType?: string;
|
|
6
|
+
protocol?: string;
|
|
7
|
+
networkType?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IICECandidatePair {
|
|
10
|
+
id?: string;
|
|
11
|
+
state?: string;
|
|
12
|
+
nominated?: boolean;
|
|
13
|
+
writable?: boolean;
|
|
14
|
+
local?: ICECandidateInfo;
|
|
15
|
+
remote?: ICECandidateInfo;
|
|
16
|
+
requestsSent?: number;
|
|
17
|
+
responsesReceived?: number;
|
|
18
|
+
}
|
|
2
19
|
export interface ICallReportOptions {
|
|
3
20
|
enabled: boolean;
|
|
4
21
|
interval: number;
|
|
@@ -40,6 +57,7 @@ export interface IStatsInterval {
|
|
|
40
57
|
bytesSent?: number;
|
|
41
58
|
bytesReceived?: number;
|
|
42
59
|
};
|
|
60
|
+
ice?: IICECandidatePair;
|
|
43
61
|
}
|
|
44
62
|
export interface ICallSummary {
|
|
45
63
|
callId: string;
|
|
@@ -76,12 +94,14 @@ export declare class CallReportCollector {
|
|
|
76
94
|
private intervalRTTs;
|
|
77
95
|
private intervalBitrates;
|
|
78
96
|
private previousStats;
|
|
97
|
+
private previousCandidatePairId;
|
|
79
98
|
private readonly MAX_BUFFER_SIZE;
|
|
80
99
|
private static readonly STATS_FLUSH_THRESHOLD;
|
|
81
100
|
private static readonly LOGS_FLUSH_THRESHOLD;
|
|
82
101
|
onFlushNeeded: (() => void) | null;
|
|
83
102
|
private _segmentIndex;
|
|
84
103
|
private _flushing;
|
|
104
|
+
private static readonly RETRY_DELAY_MS;
|
|
85
105
|
constructor(options: ICallReportOptions, logCollectorOptions?: ILogCollectorOptions);
|
|
86
106
|
start(peerConnection: RTCPeerConnection): void;
|
|
87
107
|
stop(): Promise<void>;
|
|
@@ -94,7 +114,9 @@ export declare class CallReportCollector {
|
|
|
94
114
|
cleanup(): void;
|
|
95
115
|
private _collectStats;
|
|
96
116
|
private _createStatsEntry;
|
|
117
|
+
private _resolveCandidate;
|
|
97
118
|
private _getTrackAudioLevel;
|
|
98
119
|
private _average;
|
|
99
120
|
private _resetIntervalAccumulators;
|
|
100
121
|
}
|
|
122
|
+
export {};
|