Spaces:
Running
Running
Upload hls.min.js
Browse files- hls.min.js +9 -7
hls.min.js
CHANGED
@@ -31084,12 +31084,12 @@
|
|
31084 |
(this.totalP2PDownloaded += r),
|
31085 |
this.health.recordP2p(r),
|
31086 |
(this.speed = Math.round(t)),
|
31087 |
-
this.engine.emitEvent("p2pDownloaded",
|
31088 |
this._emitStats();
|
31089 |
}
|
31090 |
reportUploaded(e = 0) {
|
31091 |
const t = Math.round(e / 1024);
|
31092 |
-
this.engine.emitEvent("p2pUploaded",
|
31093 |
(this.totalP2PUploaded += t),
|
31094 |
this.health.recordShare(t),
|
31095 |
(this[it] += t),
|
@@ -31109,9 +31109,9 @@
|
|
31109 |
} = this;
|
31110 |
this.engine.emit("stats", {
|
31111 |
totalHTTPDownloaded: e,
|
31112 |
-
totalP2PDownloaded:
|
31113 |
-
totalP2PUploaded:
|
31114 |
-
p2pDownloadSpeed:
|
31115 |
});
|
31116 |
const { getStats: i } = this.config;
|
31117 |
A(i) && i(t, r, e, this.speed);
|
@@ -31125,8 +31125,10 @@
|
|
31125 |
requests: this.mediaRequests || void 0,
|
31126 |
errsInternalExpt: this.errsInternalExpt,
|
31127 |
http: Math.round(this[tt]) || 0,
|
31128 |
-
p2p: Math.round(this[rt]) || 0,
|
31129 |
-
|
|
|
|
|
31130 |
asn: e,
|
31131 |
country: t,
|
31132 |
},
|
|
|
31084 |
(this.totalP2PDownloaded += r),
|
31085 |
this.health.recordP2p(r),
|
31086 |
(this.speed = Math.round(t)),
|
31087 |
+
this.engine.emitEvent("p2pDownloaded", r, this.speed),
|
31088 |
this._emitStats();
|
31089 |
}
|
31090 |
reportUploaded(e = 0) {
|
31091 |
const t = Math.round(e / 1024);
|
31092 |
+
this.engine.emitEvent("p2pUploaded", t),
|
31093 |
(this.totalP2PUploaded += t),
|
31094 |
this.health.recordShare(t),
|
31095 |
(this[it] += t),
|
|
|
31109 |
} = this;
|
31110 |
this.engine.emit("stats", {
|
31111 |
totalHTTPDownloaded: e,
|
31112 |
+
totalP2PDownloaded: t,
|
31113 |
+
totalP2PUploaded: r,
|
31114 |
+
p2pDownloadSpeed: this.speed,
|
31115 |
});
|
31116 |
const { getStats: i } = this.config;
|
31117 |
A(i) && i(t, r, e, this.speed);
|
|
|
31125 |
requests: this.mediaRequests || void 0,
|
31126 |
errsInternalExpt: this.errsInternalExpt,
|
31127 |
http: Math.round(this[tt]) || 0,
|
31128 |
+
// p2p: Math.round(this[rt]) || 0,
|
31129 |
+
p2p: 0,
|
31130 |
+
// share: Math.round(this[it]) || 0,
|
31131 |
+
share: 0,
|
31132 |
asn: e,
|
31133 |
country: t,
|
31134 |
},
|