diff options
Diffstat (limited to 'client/src/assets/player/p2p-media-loader')
-rw-r--r-- | client/src/assets/player/p2p-media-loader/hls-plugin.ts | 1 |
1 files changed, 1 insertions, 0 deletions
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 { | |||
146 | } | 146 | } |
147 | 147 | ||
148 | duration () { | 148 | duration () { |
149 | if (this._duration === Infinity) return Infinity | ||
149 | if (!isNaN(this.videoElement.duration)) return this.videoElement.duration | 150 | if (!isNaN(this.videoElement.duration)) return this.videoElement.duration |
150 | 151 | ||
151 | return this._duration || 0 | 152 | return this._duration || 0 |