@webex/plugin-meetings 3.1.0-next.9 → 3.2.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/dist/annotation/annotation.types.d.ts +42 -0
- package/dist/annotation/constants.d.ts +31 -0
- package/dist/annotation/index.d.ts +117 -0
- package/dist/breakouts/breakout.d.ts +8 -0
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/collection.d.ts +5 -0
- package/dist/breakouts/edit-lock-error.d.ts +15 -0
- package/dist/breakouts/events.d.ts +8 -0
- package/dist/breakouts/index.d.ts +5 -0
- package/dist/breakouts/index.js +1 -1
- package/dist/breakouts/request.d.ts +22 -0
- package/dist/breakouts/utils.d.ts +15 -0
- package/dist/common/browser-detection.d.ts +9 -0
- package/dist/common/collection.d.ts +48 -0
- package/dist/common/config.d.ts +2 -0
- package/dist/common/errors/captcha-error.d.ts +15 -0
- package/dist/common/errors/intent-to-join.d.ts +16 -0
- package/dist/common/errors/join-meeting.d.ts +17 -0
- package/dist/common/errors/media.d.ts +15 -0
- package/dist/common/errors/no-meeting-info.d.ts +14 -0
- package/dist/common/errors/parameter.d.ts +15 -0
- package/dist/common/errors/password-error.d.ts +15 -0
- package/dist/common/errors/permission.d.ts +14 -0
- package/dist/common/errors/reclaim-host-role-errors.d.ts +60 -0
- package/dist/common/errors/reconnection-in-progress.d.ts +9 -0
- package/dist/common/errors/reconnection-in-progress.js +34 -0
- package/dist/common/errors/reconnection-in-progress.js.map +1 -0
- package/dist/common/errors/reconnection.d.ts +15 -0
- package/dist/common/errors/stats.d.ts +15 -0
- package/dist/common/errors/webex-errors.d.ts +93 -0
- package/dist/common/errors/webex-meetings-error.d.ts +20 -0
- package/dist/common/events/events-scope.d.ts +17 -0
- package/dist/common/events/events.d.ts +12 -0
- package/dist/common/events/trigger-proxy.d.ts +2 -0
- package/dist/common/events/util.d.ts +2 -0
- package/dist/common/logs/logger-config.d.ts +2 -0
- package/dist/common/logs/logger-proxy.d.ts +2 -0
- package/dist/common/logs/request.d.ts +36 -0
- package/dist/common/queue.d.ts +34 -0
- package/dist/config.d.ts +73 -0
- package/dist/constants.d.ts +1088 -0
- package/dist/constants.js +6 -3
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/constants.d.ts +4 -0
- package/dist/controls-options-manager/enums.d.ts +15 -0
- package/dist/controls-options-manager/index.d.ts +136 -0
- package/dist/controls-options-manager/types.d.ts +43 -0
- package/dist/controls-options-manager/util.d.ts +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/interceptors/index.d.ts +2 -0
- package/dist/interceptors/locusRetry.d.ts +27 -0
- package/dist/interpretation/collection.d.ts +5 -0
- package/dist/interpretation/index.d.ts +5 -0
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.d.ts +5 -0
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/controlsUtils.d.ts +2 -0
- package/dist/locus-info/embeddedAppsUtils.d.ts +2 -0
- package/dist/locus-info/fullState.d.ts +2 -0
- package/dist/locus-info/hostUtils.d.ts +2 -0
- package/dist/locus-info/index.d.ts +322 -0
- package/dist/locus-info/infoUtils.d.ts +2 -0
- package/dist/locus-info/mediaSharesUtils.d.ts +2 -0
- package/dist/locus-info/parser.d.ts +272 -0
- package/dist/locus-info/selfUtils.d.ts +2 -0
- package/dist/media/MediaConnectionAwaiter.d.ts +61 -0
- package/dist/media/index.d.ts +34 -0
- package/dist/media/properties.d.ts +93 -0
- package/dist/media/util.d.ts +2 -0
- package/dist/mediaQualityMetrics/config.d.ts +241 -0
- package/dist/mediaQualityMetrics/config.js +10 -10
- package/dist/mediaQualityMetrics/config.js.map +1 -1
- package/dist/meeting/in-meeting-actions.d.ts +167 -0
- package/dist/meeting/index.d.ts +1825 -0
- package/dist/meeting/index.js +112 -64
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/locusMediaRequest.d.ts +74 -0
- package/dist/meeting/locusMediaRequest.js +27 -0
- package/dist/meeting/locusMediaRequest.js.map +1 -1
- package/dist/meeting/muteState.d.ts +178 -0
- package/dist/meeting/request.d.ts +295 -0
- package/dist/meeting/request.type.d.ts +11 -0
- package/dist/meeting/state.d.ts +9 -0
- package/dist/meeting/util.d.ts +119 -0
- package/dist/meeting/util.js +0 -16
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting/voicea-meeting.d.ts +16 -0
- package/dist/meeting/voicea-meeting.js +37 -49
- package/dist/meeting/voicea-meeting.js.map +1 -1
- package/dist/meeting-info/collection.d.ts +20 -0
- package/dist/meeting-info/index.d.ts +69 -0
- package/dist/meeting-info/meeting-info-v2.d.ts +123 -0
- package/dist/meeting-info/request.d.ts +22 -0
- package/dist/meeting-info/util.d.ts +2 -0
- package/dist/meeting-info/utilv2.d.ts +2 -0
- package/dist/meetings/collection.d.ts +40 -0
- package/dist/meetings/index.d.ts +398 -0
- package/dist/meetings/index.js +12 -28
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/meetings.types.d.ts +4 -0
- package/dist/meetings/request.d.ts +27 -0
- package/dist/meetings/util.d.ts +18 -0
- package/dist/member/index.d.ts +160 -0
- package/dist/member/types.d.ts +32 -0
- package/dist/member/util.d.ts +2 -0
- package/dist/members/collection.d.ts +29 -0
- package/dist/members/index.d.ts +353 -0
- package/dist/members/request.d.ts +114 -0
- package/dist/members/types.d.ts +25 -0
- package/dist/members/util.d.ts +215 -0
- package/dist/metrics/constants.d.ts +70 -0
- package/dist/metrics/index.d.ts +45 -0
- package/dist/multistream/mediaRequestManager.d.ts +119 -0
- package/dist/multistream/receiveSlot.d.ts +68 -0
- package/dist/multistream/receiveSlotManager.d.ts +56 -0
- package/dist/multistream/remoteMedia.d.ts +72 -0
- package/dist/multistream/remoteMediaGroup.d.ts +49 -0
- package/dist/multistream/remoteMediaManager.d.ts +300 -0
- package/dist/multistream/sendSlotManager.d.ts +69 -0
- package/dist/networkQualityMonitor/index.d.ts +70 -0
- package/dist/personal-meeting-room/index.d.ts +47 -0
- package/dist/personal-meeting-room/request.d.ts +14 -0
- package/dist/personal-meeting-room/util.d.ts +2 -0
- package/dist/reachability/clusterReachability.d.ts +110 -0
- package/dist/reachability/index.d.ts +109 -0
- package/dist/reachability/index.js +88 -9
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/request.d.ts +39 -0
- package/dist/reachability/util.d.ts +15 -0
- package/dist/reactions/constants.d.ts +3 -0
- package/dist/reactions/reactions.d.ts +4 -0
- package/dist/reactions/reactions.type.d.ts +52 -0
- package/dist/reconnection-manager/index.d.ts +136 -0
- package/dist/recording-controller/enums.d.ts +7 -0
- package/dist/recording-controller/index.d.ts +207 -0
- package/dist/recording-controller/util.d.ts +14 -0
- package/dist/roap/index.d.ts +86 -0
- package/dist/roap/request.d.ts +39 -0
- package/dist/roap/request.js +3 -27
- package/dist/roap/request.js.map +1 -1
- package/dist/roap/turnDiscovery.d.ts +155 -0
- package/dist/rtcMetrics/constants.d.ts +4 -0
- package/dist/rtcMetrics/index.d.ts +61 -0
- package/dist/statsAnalyzer/global.d.ts +36 -0
- package/dist/statsAnalyzer/index.d.ts +217 -0
- package/dist/statsAnalyzer/index.js +4 -2
- package/dist/statsAnalyzer/index.js.map +1 -1
- package/dist/statsAnalyzer/mqaUtil.d.ts +48 -0
- package/dist/statsAnalyzer/mqaUtil.js +14 -0
- package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
- package/dist/transcription/index.d.ts +64 -0
- package/dist/types/constants.d.ts +3 -1
- package/dist/types/mediaQualityMetrics/config.d.ts +8 -2
- package/dist/types/meeting/index.d.ts +10 -1
- package/dist/types/meeting/locusMediaRequest.d.ts +1 -0
- package/dist/types/meeting/voicea-meeting.d.ts +3 -2
- package/dist/types/meetings/index.d.ts +1 -16
- package/dist/types/reachability/index.d.ts +11 -0
- package/dist/webinar/collection.d.ts +16 -0
- package/dist/webinar/index.d.ts +5 -0
- package/dist/webinar/index.js +1 -1
- package/package.json +21 -21
- package/src/constants.ts +3 -2
- package/src/mediaQualityMetrics/config.ts +13 -7
- package/src/meeting/index.ts +73 -30
- package/src/meeting/locusMediaRequest.ts +31 -0
- package/src/meeting/util.ts +1 -16
- package/src/meeting/voicea-meeting.ts +44 -46
- package/src/meetings/index.ts +15 -27
- package/src/reachability/index.ts +60 -0
- package/src/roap/request.ts +1 -24
- package/src/statsAnalyzer/index.ts +6 -3
- package/src/statsAnalyzer/mqaUtil.ts +18 -0
- package/test/unit/spec/meeting/index.js +70 -33
- package/test/unit/spec/meeting/locusMediaRequest.ts +49 -0
- package/test/unit/spec/meeting/utils.js +0 -10
- package/test/unit/spec/meeting/voicea-meeting.ts +5 -14
- package/test/unit/spec/meetings/index.js +59 -17
- package/test/unit/spec/reachability/index.ts +266 -0
- package/test/unit/spec/roap/request.ts +0 -37
- package/test/unit/spec/stats-analyzer/index.js +89 -8
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rtc Metrics
|
|
3
|
+
*/
|
|
4
|
+
export default class RtcMetrics {
|
|
5
|
+
/**
|
|
6
|
+
* Array of MetricData items to be sent to the metrics service.
|
|
7
|
+
*/
|
|
8
|
+
metricsQueue: any[];
|
|
9
|
+
intervalId: number;
|
|
10
|
+
webex: any;
|
|
11
|
+
meetingId: string;
|
|
12
|
+
correlationId: string;
|
|
13
|
+
connectionId: string;
|
|
14
|
+
/**
|
|
15
|
+
* Initialize the interval.
|
|
16
|
+
*
|
|
17
|
+
* @param {object} webex - The main `webex` object.
|
|
18
|
+
* @param {string} meetingId - The meeting id.
|
|
19
|
+
* @param {string} correlationId - The correlation id.
|
|
20
|
+
*/
|
|
21
|
+
constructor(webex: any, meetingId: any, correlationId: any);
|
|
22
|
+
/**
|
|
23
|
+
* Check to see if the metrics queue has any items.
|
|
24
|
+
*
|
|
25
|
+
* @returns {void}
|
|
26
|
+
*/
|
|
27
|
+
sendMetricsInQueue(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Add metrics items to the metrics queue.
|
|
30
|
+
*
|
|
31
|
+
* @param {object} data - An object with a payload array of metrics items.
|
|
32
|
+
*
|
|
33
|
+
* @returns {void}
|
|
34
|
+
*/
|
|
35
|
+
addMetrics(data: any): void;
|
|
36
|
+
/**
|
|
37
|
+
* Clear the metrics interval.
|
|
38
|
+
*
|
|
39
|
+
* @returns {void}
|
|
40
|
+
*/
|
|
41
|
+
closeMetrics(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Anonymize IP addresses.
|
|
44
|
+
*
|
|
45
|
+
* @param {array} stats - An RTCStatsReport organized into an array of strings.
|
|
46
|
+
* @returns {string}
|
|
47
|
+
*/
|
|
48
|
+
anonymizeIp(stats: string): string;
|
|
49
|
+
/**
|
|
50
|
+
* Set a new connection id.
|
|
51
|
+
*
|
|
52
|
+
* @returns {void}
|
|
53
|
+
*/
|
|
54
|
+
private setNewConnectionId;
|
|
55
|
+
/**
|
|
56
|
+
* Send metrics to the metrics service.
|
|
57
|
+
*
|
|
58
|
+
* @returns {void}
|
|
59
|
+
*/
|
|
60
|
+
private sendMetrics;
|
|
61
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare const STATS_DEFAULT: {
|
|
2
|
+
encryption: string;
|
|
3
|
+
bandwidth: {
|
|
4
|
+
systemBandwidth: number;
|
|
5
|
+
sentPerSecond: number;
|
|
6
|
+
encodedPerSecond: number;
|
|
7
|
+
helper: {
|
|
8
|
+
audioBytesSent: number;
|
|
9
|
+
videoBytestSent: number;
|
|
10
|
+
};
|
|
11
|
+
speed: number;
|
|
12
|
+
};
|
|
13
|
+
results: {};
|
|
14
|
+
connectionType: {
|
|
15
|
+
systemNetworkType: string;
|
|
16
|
+
systemIpAddress: string;
|
|
17
|
+
local: {
|
|
18
|
+
candidateType: any[];
|
|
19
|
+
transport: any[];
|
|
20
|
+
ipAddress: any[];
|
|
21
|
+
networkType: any[];
|
|
22
|
+
};
|
|
23
|
+
remote: {
|
|
24
|
+
candidateType: any[];
|
|
25
|
+
transport: any[];
|
|
26
|
+
ipAddress: any[];
|
|
27
|
+
networkType: any[];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
resolutions: {};
|
|
31
|
+
internal: {
|
|
32
|
+
remote: {};
|
|
33
|
+
candidates: {};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export default STATS_DEFAULT;
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import EventsScope from '../common/events/events-scope';
|
|
3
|
+
import { ReceiveSlot } from '../multistream/receiveSlot';
|
|
4
|
+
export declare const EVENTS: {
|
|
5
|
+
MEDIA_QUALITY: string;
|
|
6
|
+
LOCAL_MEDIA_STARTED: string;
|
|
7
|
+
LOCAL_MEDIA_STOPPED: string;
|
|
8
|
+
REMOTE_MEDIA_STARTED: string;
|
|
9
|
+
REMOTE_MEDIA_STOPPED: string;
|
|
10
|
+
};
|
|
11
|
+
type ReceiveSlotCallback = (csi: number) => ReceiveSlot | undefined;
|
|
12
|
+
type MediaStatus = {
|
|
13
|
+
actual?: any;
|
|
14
|
+
expected?: any;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Stats Analyzer class that will emit events based on detected quality
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @class StatsAnalyzer
|
|
21
|
+
* @extends {EventsScope}
|
|
22
|
+
*/
|
|
23
|
+
export declare class StatsAnalyzer extends EventsScope {
|
|
24
|
+
config: any;
|
|
25
|
+
correlationId: any;
|
|
26
|
+
lastEmittedStartStopEvent: any;
|
|
27
|
+
lastMqaDataSent: any;
|
|
28
|
+
lastStatsResults: any;
|
|
29
|
+
meetingMediaStatus: any;
|
|
30
|
+
mqaInterval: NodeJS.Timeout;
|
|
31
|
+
mqaSentCount: any;
|
|
32
|
+
networkQualityMonitor: any;
|
|
33
|
+
mediaConnection: any;
|
|
34
|
+
statsInterval: NodeJS.Timeout;
|
|
35
|
+
statsResults: any;
|
|
36
|
+
statsStarted: any;
|
|
37
|
+
successfulCandidatePair: any;
|
|
38
|
+
localIpAddress: string;
|
|
39
|
+
receiveSlotCallback: ReceiveSlotCallback;
|
|
40
|
+
/**
|
|
41
|
+
* Creates a new instance of StatsAnalyzer
|
|
42
|
+
* @constructor
|
|
43
|
+
* @public
|
|
44
|
+
* @param {Object} config SDK Configuration Object
|
|
45
|
+
* @param {Function} receiveSlotCallback Callback used to access receive slots.
|
|
46
|
+
* @param {Object} networkQualityMonitor class for assessing network characteristics (jitter, packetLoss, latency)
|
|
47
|
+
* @param {Object} statsResults Default properties for stats
|
|
48
|
+
*/
|
|
49
|
+
constructor(config: any, receiveSlotCallback?: ReceiveSlotCallback, networkQualityMonitor?: object, statsResults?: object);
|
|
50
|
+
/**
|
|
51
|
+
* Resets cumulative stats arrays.
|
|
52
|
+
*
|
|
53
|
+
* @public
|
|
54
|
+
* @memberof StatsAnalyzer
|
|
55
|
+
* @returns {void}
|
|
56
|
+
*/
|
|
57
|
+
resetStatsResults(): void;
|
|
58
|
+
/**
|
|
59
|
+
* sets mediaStatus status for analyzing metrics
|
|
60
|
+
*
|
|
61
|
+
* @public
|
|
62
|
+
* @param {Object} status for the audio and video
|
|
63
|
+
* @memberof StatsAnalyzer
|
|
64
|
+
* @returns {void}
|
|
65
|
+
*/
|
|
66
|
+
updateMediaStatus(status: MediaStatus): void;
|
|
67
|
+
/**
|
|
68
|
+
* captures MQA data from media connection
|
|
69
|
+
*
|
|
70
|
+
* @public
|
|
71
|
+
* @memberof StatsAnalyzer
|
|
72
|
+
* @returns {void}
|
|
73
|
+
*/
|
|
74
|
+
sendMqaData(): void;
|
|
75
|
+
/**
|
|
76
|
+
* updated the media connection when changed
|
|
77
|
+
*
|
|
78
|
+
* @private
|
|
79
|
+
* @memberof StatsAnalyzer
|
|
80
|
+
* @param {RoapMediaConnection} mediaConnection
|
|
81
|
+
* @returns {void}
|
|
82
|
+
*/
|
|
83
|
+
updateMediaConnection(mediaConnection: any): void;
|
|
84
|
+
/**
|
|
85
|
+
* Returns the local IP address for diagnostics.
|
|
86
|
+
* this is the local IP of the interface used for the current media connection
|
|
87
|
+
* a host can have many local Ip Addresses
|
|
88
|
+
* @returns {string | undefined} The local IP address.
|
|
89
|
+
*/
|
|
90
|
+
getLocalIpAddress(): string;
|
|
91
|
+
/**
|
|
92
|
+
* Starts the stats analyzer on interval
|
|
93
|
+
*
|
|
94
|
+
* @public
|
|
95
|
+
* @memberof StatsAnalyzer
|
|
96
|
+
* @param {RoapMediaConnection} mediaConnection
|
|
97
|
+
* @returns {Promise}
|
|
98
|
+
*/
|
|
99
|
+
startAnalyzer(mediaConnection: any): any;
|
|
100
|
+
/**
|
|
101
|
+
* Cleans up the analyzer when done
|
|
102
|
+
*
|
|
103
|
+
* @public
|
|
104
|
+
* @memberof StatsAnalyzer
|
|
105
|
+
* @returns {void}
|
|
106
|
+
*/
|
|
107
|
+
stopAnalyzer(): any;
|
|
108
|
+
/**
|
|
109
|
+
* Parse a single result of get stats
|
|
110
|
+
*
|
|
111
|
+
* @private
|
|
112
|
+
* @param {*} getStatsResult
|
|
113
|
+
* @param {String} type
|
|
114
|
+
* @param {boolean} isSender
|
|
115
|
+
* @returns {void}
|
|
116
|
+
* @memberof StatsAnalyzer
|
|
117
|
+
*/
|
|
118
|
+
private parseGetStatsResult;
|
|
119
|
+
/**
|
|
120
|
+
* Filters the get stats results for types
|
|
121
|
+
* @private
|
|
122
|
+
* @param {Array} statsItem
|
|
123
|
+
* @param {String} type
|
|
124
|
+
* @param {boolean} isSender
|
|
125
|
+
* @returns {void}
|
|
126
|
+
*/
|
|
127
|
+
filterAndParseGetStatsResults(statsItem: any, type: string, isSender: boolean): void;
|
|
128
|
+
/**
|
|
129
|
+
* parse the audio
|
|
130
|
+
* @param {String} result
|
|
131
|
+
* @param {boolean} type
|
|
132
|
+
* @returns {void}
|
|
133
|
+
*/
|
|
134
|
+
parseAudioSource(result: any, type: any): void;
|
|
135
|
+
/**
|
|
136
|
+
* emits started/stopped events for local/remote media by checking
|
|
137
|
+
* if given values are increasing or not. The previousValue, currentValue
|
|
138
|
+
* params can be any numerical value like number of receive packets or
|
|
139
|
+
* decoded frames, etc.
|
|
140
|
+
*
|
|
141
|
+
* @private
|
|
142
|
+
* @param {string} mediaType
|
|
143
|
+
* @param {number} previousValue - value to compare
|
|
144
|
+
* @param {number} currentValue - value to compare (must be same type of value as previousValue)
|
|
145
|
+
* @param {boolean} isLocal - true if stats are for local media being sent out, false for remote media being received
|
|
146
|
+
* @memberof StatsAnalyzer
|
|
147
|
+
* @returns {void}
|
|
148
|
+
*/
|
|
149
|
+
emitStartStopEvents: (mediaType: string, previousValue: number, currentValue: number, isLocal: boolean) => void;
|
|
150
|
+
/**
|
|
151
|
+
* compares current and previous stats to check if packets are not sent
|
|
152
|
+
*
|
|
153
|
+
* @private
|
|
154
|
+
* @memberof StatsAnalyzer
|
|
155
|
+
* @returns {void}
|
|
156
|
+
*/
|
|
157
|
+
private compareLastStatsResult;
|
|
158
|
+
/**
|
|
159
|
+
* Does a `getStats` on all the transceivers and parses the results
|
|
160
|
+
*
|
|
161
|
+
* @private
|
|
162
|
+
* @memberof StatsAnalyzer
|
|
163
|
+
* @returns {Promise}
|
|
164
|
+
*/
|
|
165
|
+
private getStatsAndParse;
|
|
166
|
+
/**
|
|
167
|
+
* Processes OutboundRTP stats result and stores
|
|
168
|
+
* @private
|
|
169
|
+
* @param {*} result
|
|
170
|
+
* @param {*} mediaType
|
|
171
|
+
* @returns {void}
|
|
172
|
+
*/
|
|
173
|
+
private processOutboundRTPResult;
|
|
174
|
+
/**
|
|
175
|
+
* Processes InboundRTP stats result and stores
|
|
176
|
+
* @private
|
|
177
|
+
* @param {*} result
|
|
178
|
+
* @param {*} mediaType
|
|
179
|
+
* @returns {void}
|
|
180
|
+
*/
|
|
181
|
+
private processInboundRTPResult;
|
|
182
|
+
/**
|
|
183
|
+
* extracts the local Ip address from the statsResult object by looking at stats results candidates
|
|
184
|
+
* and matches that ID with the successful candidate pair. It looks at the type of local candidate it is
|
|
185
|
+
* and then extracts the IP address from the relatedAddress or address property based on conditions known in webrtc
|
|
186
|
+
* note, there are known incompatibilities and it is possible for this to set undefined, or for the IP address to be the public IP address
|
|
187
|
+
* for example, firefox does not set the relayProtocol, and if the user is behind a NAT it might be the public IP
|
|
188
|
+
* @private
|
|
189
|
+
* @param {string} successfulCandidatePairId - The ID of the successful candidate pair.
|
|
190
|
+
* @param {Object} candidates - the stats result candidates
|
|
191
|
+
* @returns {void}
|
|
192
|
+
*/
|
|
193
|
+
extractAndSetLocalIpAddressInfoForDiagnostics: (successfulCandidatePairId: string, candidates: {
|
|
194
|
+
[key: string]: Record<string, unknown>;
|
|
195
|
+
}) => void;
|
|
196
|
+
/**
|
|
197
|
+
* Processes remote and local candidate result and stores
|
|
198
|
+
* @private
|
|
199
|
+
* @param {*} result
|
|
200
|
+
* @param {*} type
|
|
201
|
+
* @param {boolean} isSender
|
|
202
|
+
* @param {boolean} isRemote
|
|
203
|
+
*
|
|
204
|
+
* @returns {void}
|
|
205
|
+
*/
|
|
206
|
+
parseCandidate: (result: any, type: any, isSender: boolean, isRemote: boolean) => void;
|
|
207
|
+
/**
|
|
208
|
+
*
|
|
209
|
+
* @private
|
|
210
|
+
* @param {*} result
|
|
211
|
+
* @param {*} type
|
|
212
|
+
* @returns {void}
|
|
213
|
+
* @memberof StatsAnalyzer
|
|
214
|
+
*/
|
|
215
|
+
compareSentAndReceived(result: any, type: any): void;
|
|
216
|
+
}
|
|
217
|
+
export {};
|
|
@@ -919,10 +919,10 @@ var StatsAnalyzer = exports.StatsAnalyzer = /*#__PURE__*/function (_EventsScope)
|
|
|
919
919
|
this.statsResults[mediaType][sendrecvType].encoderImplementation = result.encoderImplementation;
|
|
920
920
|
this.statsResults[mediaType][sendrecvType].qualityLimitationReason = result.qualityLimitationReason;
|
|
921
921
|
this.statsResults[mediaType][sendrecvType].qualityLimitationResolutionChanges = result.qualityLimitationResolutionChanges;
|
|
922
|
-
this.statsResults[mediaType][sendrecvType].
|
|
922
|
+
this.statsResults[mediaType][sendrecvType].totalRtxPacketsSent = result.retransmittedPacketsSent;
|
|
923
|
+
this.statsResults[mediaType][sendrecvType].totalRtxBytesSent = result.retransmittedBytesSent;
|
|
923
924
|
this.statsResults[mediaType][sendrecvType].totalBytesSent = result.bytesSent;
|
|
924
925
|
this.statsResults[mediaType][sendrecvType].headerBytesSent = result.headerBytesSent;
|
|
925
|
-
this.statsResults[mediaType][sendrecvType].retransmittedBytesSent = result.retransmittedBytesSent;
|
|
926
926
|
this.statsResults[mediaType][sendrecvType].requestedBitrate = result.requestedBitrate;
|
|
927
927
|
this.statsResults[mediaType][sendrecvType].requestedFrameSize = result.requestedFrameSize;
|
|
928
928
|
}
|
|
@@ -1013,6 +1013,8 @@ var StatsAnalyzer = exports.StatsAnalyzer = /*#__PURE__*/function (_EventsScope)
|
|
|
1013
1013
|
this.statsResults[mediaType][sendrecvType].fecPacketsReceived = result.fecPacketsReceived;
|
|
1014
1014
|
this.statsResults[mediaType][sendrecvType].totalBytesReceived = result.bytesReceived;
|
|
1015
1015
|
this.statsResults[mediaType][sendrecvType].headerBytesReceived = result.headerBytesReceived;
|
|
1016
|
+
this.statsResults[mediaType][sendrecvType].totalRtxPacketsReceived = result.retransmittedPacketsReceived;
|
|
1017
|
+
this.statsResults[mediaType][sendrecvType].totalRtxBytesReceived = result.retransmittedBytesReceived;
|
|
1016
1018
|
this.statsResults[mediaType][sendrecvType].meanRtpJitter.push(result.jitter);
|
|
1017
1019
|
|
|
1018
1020
|
// Audio stats
|