ActivityPub-federated video streaming platform using P2P directly in your web browser
Recover HLS video with duration inconsistency
Chocobozzz22f25c740bf3
diff --git a/client/src/assets/player/p2p-media-loader/hls-plugin.ts b/client/src/assets/player/p2p-media-loader/hls-plugin.tsindex 71c31696a3..2aa691f05f 100644--- a/client/src/assets/player/p2p-media-loader/hls-plugin.ts+++ b/client/src/assets/player/p2p-media-loader/hls-plugin.ts@@ -146,7 +146,9 @@ class Html5Hlsjs {}duration () {- return this._duration || this.videoElement.duration || 0+ if (!isNaN(this.videoElement.duration)) return this.videoElement.duration++ return this._duration || 0}seekable () {@@ -366,6 +368,7 @@ class Html5Hlsjs {this.isLive = data.details.livethis.dvrDuration = data.details.totalduration+this._duration = this.isLive ? Infinity : data.details.totalduration})