@pexip/peer-connection-stats 18.2.0 → 18.5.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/CHANGELOG.md +32 -0
- package/dist/statsCollector.d.ts +3 -0
- package/dist/statsCollector.js +3 -5
- package/dist/statsCollector.types.d.ts +1 -0
- package/package.json +8 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 18.5.0
|
|
4
|
+
|
|
5
|
+
## 18.4.1
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [aac2518]
|
|
10
|
+
- Updated dependencies [aac2518]
|
|
11
|
+
- @pexip/utils@17.1.1
|
|
12
|
+
- @pexip/signal@16.9.2
|
|
13
|
+
|
|
14
|
+
## 18.4.0
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [4068f02]
|
|
19
|
+
- Updated dependencies [a551f01]
|
|
20
|
+
- @pexip/utils@17.1.0
|
|
21
|
+
- @pexip/signal@16.9.1
|
|
22
|
+
|
|
23
|
+
## 18.3.0
|
|
24
|
+
|
|
25
|
+
### Minor Changes
|
|
26
|
+
|
|
27
|
+
- 27d9dd7: Expose `quality` from `onRtcStats` signal.
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [adc1a50]
|
|
32
|
+
- @pexip/utils@17.0.1
|
|
33
|
+
- @pexip/signal@16.9.0
|
|
34
|
+
|
|
3
35
|
## 18.2.0
|
|
4
36
|
|
|
5
37
|
### Minor Changes
|
package/dist/statsCollector.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ export declare const addDeltaStats: (newStats: NormalizedRTCStats, cache: CacheS
|
|
|
97
97
|
timestamp?: number;
|
|
98
98
|
totalPercentageLost?: number;
|
|
99
99
|
timeToCaptureStats?: number;
|
|
100
|
+
quality?: Quality;
|
|
100
101
|
} | {
|
|
101
102
|
framesPerSecond?: number;
|
|
102
103
|
resolution?: string;
|
|
@@ -116,6 +117,7 @@ export declare const addDeltaStats: (newStats: NormalizedRTCStats, cache: CacheS
|
|
|
116
117
|
timestamp?: number;
|
|
117
118
|
totalPercentageLost?: number;
|
|
118
119
|
timeToCaptureStats?: number;
|
|
120
|
+
quality?: Quality;
|
|
119
121
|
averageDecodeTime?: number;
|
|
120
122
|
} | {
|
|
121
123
|
framesPerSecond?: number;
|
|
@@ -136,6 +138,7 @@ export declare const addDeltaStats: (newStats: NormalizedRTCStats, cache: CacheS
|
|
|
136
138
|
timestamp?: number;
|
|
137
139
|
totalPercentageLost?: number;
|
|
138
140
|
timeToCaptureStats?: number;
|
|
141
|
+
quality?: Quality;
|
|
139
142
|
totalPacketSendDelay?: number;
|
|
140
143
|
averagePacketSendDelay?: number;
|
|
141
144
|
averageEncodeTime?: number;
|
package/dist/statsCollector.js
CHANGED
|
@@ -444,11 +444,9 @@ export const addDeltaStats = (newStats, cache) => {
|
|
|
444
444
|
}
|
|
445
445
|
});
|
|
446
446
|
const callQualityStats = recordCallQualityStats(oldStats, deltaStats, cache.callQualityStats);
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
callQualityStats,
|
|
451
|
-
];
|
|
447
|
+
const quality = getQuality(callQualityStats ?? []).quality;
|
|
448
|
+
deltaStats.quality = quality;
|
|
449
|
+
return [deltaStats, quality, callQualityStats];
|
|
452
450
|
};
|
|
453
451
|
// https://docs.pexip.com/admin/media_statistics.htm
|
|
454
452
|
export const calculateQuality = (stats) => {
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pexip/peer-connection-stats",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.5.0",
|
|
4
4
|
"description": "Normalizer of RTCStats and related",
|
|
5
5
|
"homepage": "https://gitlab.com/pexip/zoo",
|
|
6
6
|
"bugs": "https://gitlab.com/pexip/zoo/issues",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "https://
|
|
10
|
-
"directory": "
|
|
9
|
+
"url": "https://github.com/pexip/aquila.git",
|
|
10
|
+
"directory": "packages/peer-connection-stats"
|
|
11
11
|
},
|
|
12
12
|
"type": "module",
|
|
13
13
|
"license": "Apache-2.0",
|
|
@@ -40,20 +40,19 @@
|
|
|
40
40
|
"typecheck": "yarn tsc --noEmit -p ."
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@pexip/signal": "16.9.
|
|
44
|
-
"@pexip/utils": "17.
|
|
43
|
+
"@pexip/signal": "16.9.2",
|
|
44
|
+
"@pexip/utils": "17.1.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@pexip/bundler": "18.1.
|
|
47
|
+
"@pexip/bundler": "18.1.2",
|
|
48
48
|
"@swc/core": "^1.10.12",
|
|
49
|
-
"@swc/jest": "^0.2.
|
|
49
|
+
"@swc/jest": "^0.2.39",
|
|
50
50
|
"jest": "^29.5.12",
|
|
51
51
|
"jest-junit": "^16.0.0",
|
|
52
52
|
"prettier": "^3.2.5",
|
|
53
53
|
"typescript": "~5.7.3"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
|
-
"access": "public"
|
|
57
|
-
"registry": "https://registry.npmjs.org/"
|
|
56
|
+
"access": "public"
|
|
58
57
|
}
|
|
59
58
|
}
|