Fix live duration in player

This commit is contained in:
Chocobozzz 2021-12-07 11:32:19 +01:00
parent bdf70330e4
commit 51d811751f
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 0 deletions

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