Fix live duration in player

This commit is contained in:
Chocobozzz
2021-12-07 11:32:19 +01:00
parent bdf70330e4
commit 51d811751f

View File

@@ -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