Verified Commit 9538ff13 authored by Chocobozzz's avatar Chocobozzz
Browse files

Recover HLS video with duration inconsistency

With audio longer than video
parent a230e10e
......@@ -146,7 +146,9 @@ class Html5Hlsjs {
}
duration () {
return this._duration || this.videoElement.duration || 0
if (!isNaN(this.videoElement.duration)) return this.videoElement.duration
return this._duration || 0
}
seekable () {
......@@ -366,6 +368,7 @@ class Html5Hlsjs {
this.isLive = data.details.live
this.dvrDuration = data.details.totalduration
this._duration = this.isLive ? Infinity : data.details.totalduration
})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment