|
@@ -10,8 +10,8 @@ const browserSupported = RTCBrowserType.isChrome()
|
10
|
10
|
|| RTCBrowserType.isNWJS() || RTCBrowserType.isElectron();
|
11
|
11
|
|
12
|
12
|
/**
|
13
|
|
- * The LibJitsiMeet browser-agnostic names of the browser-specific keys reported
|
14
|
|
- * by RTCPeerConnection#getStats mapped by RTCBrowserType.
|
|
13
|
+ * The lib-jitsi-meet browser-agnostic names of the browser-specific keys
|
|
14
|
+ * reported by RTCPeerConnection#getStats mapped by RTCBrowserType.
|
15
|
15
|
*/
|
16
|
16
|
const KEYS_BY_BROWSER_TYPE = {};
|
17
|
17
|
|
|
@@ -207,8 +207,9 @@ export default function StatsCollector(
|
207
|
207
|
|
208
|
208
|
/**
|
209
|
209
|
* The function which is to be used to retrieve the value associated in a
|
210
|
|
- * report returned by RTCPeerConnection#getStats with a LibJitsiMeet
|
|
210
|
+ * report returned by RTCPeerConnection#getStats with a lib-jitsi-meet
|
211
|
211
|
* browser-agnostic name/key.
|
|
212
|
+ *
|
212
|
213
|
* @function
|
213
|
214
|
* @private
|
214
|
215
|
*/
|
|
@@ -329,13 +330,13 @@ StatsCollector.prototype.start = function(startAudioLevelStats) {
|
329
|
330
|
/**
|
330
|
331
|
* Defines a function which (1) is to be used as a StatsCollector method and (2)
|
331
|
332
|
* gets the value from a specific report returned by RTCPeerConnection#getStats
|
332
|
|
- * associated with a LibJitsiMeet browser-agnostic name.
|
|
333
|
+ * associated with a lib-jitsi-meet browser-agnostic name.
|
333
|
334
|
*
|
334
|
335
|
* @param {Object.<string,string>} keys the map of LibJitsi browser-agnostic
|
335
|
336
|
* names to RTCPeerConnection#getStats browser-specific keys
|
336
|
337
|
*/
|
337
|
338
|
StatsCollector.prototype._defineGetStatValueMethod = function(keys) {
|
338
|
|
- // Define the function which converts a LibJitsiMeet browser-asnostic name
|
|
339
|
+ // Define the function which converts a lib-jitsi-meet browser-asnostic name
|
339
|
340
|
// to a browser-specific key of a report returned by
|
340
|
341
|
// RTCPeerConnection#getStats.
|
341
|
342
|
const keyFromName = function(name) {
|
|
@@ -395,10 +396,8 @@ StatsCollector.prototype._defineGetStatValueMethod = function(keys) {
|
395
|
396
|
|
396
|
397
|
// Compose the 2 functions defined above to get a function which retrieves
|
397
|
398
|
// the value from a specific report returned by RTCPeerConnection#getStats
|
398
|
|
- // associated with a specific LibJitsiMeet browser-agnostic name.
|
399
|
|
- return function(item, name) {
|
400
|
|
- return itemStatByKey(item, keyFromName(name));
|
401
|
|
- };
|
|
399
|
+ // associated with a specific lib-jitsi-meet browser-agnostic name.
|
|
400
|
+ return (item, name) => itemStatByKey(item, keyFromName(name));
|
402
|
401
|
};
|
403
|
402
|
|
404
|
403
|
/* eslint-disable no-continue */
|