diff --git a/client/src/assets/player/p2p-media-loader/hls-plugin.ts b/client/src/assets/player/p2p-media-loader/hls-plugin.ts index 2aa691f05..421ce4934 100644 --- a/client/src/assets/player/p2p-media-loader/hls-plugin.ts +++ b/client/src/assets/player/p2p-media-loader/hls-plugin.ts @@ -146,6 +146,7 @@ class Html5Hlsjs { } duration () { + if (this._duration === Infinity) return Infinity if (!isNaN(this.videoElement.duration)) return this.videoElement.duration return this._duration || 0