Maybe this will help
This commit is contained in:
parent
e9207055d5
commit
e255d5f59a
@ -295,13 +295,14 @@ if (Hls.isSupported()) {
|
|||||||
vidReady = true
|
vidReady = true
|
||||||
clearTimeout(retryTimeout)
|
clearTimeout(retryTimeout)
|
||||||
})
|
})
|
||||||
hls.on(Hls.Events.ERROR, (e) => {
|
hls.on(Hls.Events.ERROR, (e,d) => {
|
||||||
|
if (!d.fatal) return // Don't attempt to recover the stream when a non-fatal error occurs
|
||||||
vidReady = false
|
vidReady = false
|
||||||
|
|
||||||
retryTimeout = setTimeout(() => {
|
retryTimeout = setTimeout(() => {
|
||||||
if (vidReady) return
|
if (vidReady) return
|
||||||
loadSource()
|
loadSource()
|
||||||
}, 10000)
|
}, 5000)
|
||||||
|
|
||||||
if (!vid.paused) {
|
if (!vid.paused) {
|
||||||
toggleStream()
|
toggleStream()
|
||||||
|
Reference in New Issue
Block a user