Reduce time to throw an error on live problem
This commit is contained in:
parent
7815dc450e
commit
0ef18e5b89
|
@ -403,7 +403,7 @@ class Html5Hlsjs {
|
||||||
this._duration = this.isLive ? Infinity : data.details.totalduration
|
this._duration = this.isLive ? Infinity : data.details.totalduration
|
||||||
|
|
||||||
// Increase network error recovery for lives since they can be broken (server restart, stream interruption etc)
|
// Increase network error recovery for lives since they can be broken (server restart, stream interruption etc)
|
||||||
if (this.isLive) this.maxNetworkErrorRecovery = 300
|
if (this.isLive) this.maxNetworkErrorRecovery = 30
|
||||||
})
|
})
|
||||||
|
|
||||||
this.hls.once(Hlsjs.Events.FRAG_LOADED, () => {
|
this.hls.once(Hlsjs.Events.FRAG_LOADED, () => {
|
||||||
|
|
Loading…
Reference in New Issue