@ceeblue/web-utils 7.6.0 → 7.7.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/web-utils.d.ts +3 -2
- package/dist/web-utils.js +7 -6
- package/dist/web-utils.js.map +1 -1
- package/dist/web-utils.min.js +1 -1
- package/dist/web-utils.min.js.map +1 -1
- package/package.json +2 -2
package/dist/web-utils.d.ts
CHANGED
|
@@ -1213,8 +1213,9 @@ declare class PlayerStats extends Loggable {
|
|
|
1213
1213
|
skippedAudio?: number;
|
|
1214
1214
|
playbackSpeed?: number;
|
|
1215
1215
|
playbackRate?: number;
|
|
1216
|
-
|
|
1217
|
-
|
|
1216
|
+
audioByteRate?: number;
|
|
1217
|
+
videoByteRate?: number;
|
|
1218
|
+
dataByteRate?: number;
|
|
1218
1219
|
videoTrackId?: number;
|
|
1219
1220
|
videoTrackBandwidth?: number;
|
|
1220
1221
|
audioTrackId?: number;
|
package/dist/web-utils.js
CHANGED
|
@@ -13415,7 +13415,7 @@ class PlayerStats extends Loggable {
|
|
|
13415
13415
|
* @returns A {@link CML.Cmcd} object representing the CMCD payload.
|
|
13416
13416
|
*/
|
|
13417
13417
|
toCmcd(url, trackId, prevStats) {
|
|
13418
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
13418
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
13419
13419
|
const cmcd = {};
|
|
13420
13420
|
// Determine playback rate to use, preferring 'playbackRate' if available, otherwise falling back to 'playbackSpeed'
|
|
13421
13421
|
const playBack = (_a = this.playbackRate) !== null && _a !== void 0 ? _a : this.playbackSpeed;
|
|
@@ -13450,8 +13450,9 @@ class PlayerStats extends Loggable {
|
|
|
13450
13450
|
if (this.bufferAmount != null) {
|
|
13451
13451
|
cmcd.bl = this.bufferAmount; // Buffer Length
|
|
13452
13452
|
}
|
|
13453
|
-
if (this.
|
|
13454
|
-
|
|
13453
|
+
if (this.audioByteRate != null || this.videoByteRate != null || this.dataByteRate != null) {
|
|
13454
|
+
// Measured mtp CMCD throughput
|
|
13455
|
+
cmcd.mtp = ((_g = this.audioByteRate) !== null && _g !== void 0 ? _g : 0) + ((_h = this.videoByteRate) !== null && _h !== void 0 ? _h : 0) + ((_j = this.dataByteRate) !== null && _j !== void 0 ? _j : 0);
|
|
13455
13456
|
}
|
|
13456
13457
|
if (playBack != null) {
|
|
13457
13458
|
cmcd.pr = Number(playBack.toFixed(2)); // Playback Rate
|
|
@@ -13462,9 +13463,9 @@ class PlayerStats extends Loggable {
|
|
|
13462
13463
|
hls: 'h',
|
|
13463
13464
|
smooth: 's'
|
|
13464
13465
|
};
|
|
13465
|
-
const proto = (
|
|
13466
|
+
const proto = (_k = this.protocol) === null || _k === void 0 ? void 0 : _k.toLowerCase();
|
|
13466
13467
|
if (proto != null) {
|
|
13467
|
-
cmcd.sf = ((
|
|
13468
|
+
cmcd.sf = ((_l = sfByProtocol[proto]) !== null && _l !== void 0 ? _l : 'o'); // Streaming Format
|
|
13468
13469
|
}
|
|
13469
13470
|
if (this.waitingData != null) {
|
|
13470
13471
|
cmcd.su = this.waitingData; // Startup
|
|
@@ -13730,4 +13731,4 @@ class UIMetrics {
|
|
|
13730
13731
|
* This file is part of https://github.com/CeeblueTV/web-utils which is released under GNU Affero General Public License.
|
|
13731
13732
|
* See file LICENSE or go to https://spdx.org/licenses/AGPL-3.0-or-later.html for full license details.
|
|
13732
13733
|
*/
|
|
13733
|
-
const VERSION = '7.
|
|
13734
|
+
const VERSION = '7.7.0';export{BinaryReader,BinaryWriter,BitReader,ByteRate,index as CML,Connect,EpochTime,EventEmitter,FixMap,Log,LogLevel,Loggable,NetAddress,Numbers,PlayerStats,Queue,SDP,UIMetrics,Util,VERSION,WebSocketReliable,log};//# sourceMappingURL=web-utils.js.map
|