Fix live duration in player
This commit is contained in:
parent
bdf70330e4
commit
51d811751f
|
@ -146,6 +146,7 @@ class Html5Hlsjs {
|
||||||
}
|
}
|
||||||
|
|
||||||
duration () {
|
duration () {
|
||||||
|
if (this._duration === Infinity) return Infinity
|
||||||
if (!isNaN(this.videoElement.duration)) return this.videoElement.duration
|
if (!isNaN(this.videoElement.duration)) return this.videoElement.duration
|
||||||
|
|
||||||
return this._duration || 0
|
return this._duration || 0
|
||||||
|
|
Loading…
Reference in New Issue