Maybe this will help
This commit is contained in:
parent
e9207055d5
commit
e255d5f59a
@ -295,13 +295,14 @@ if (Hls.isSupported()) {
|
||||
vidReady = true
|
||||
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
|
||||
|
||||
retryTimeout = setTimeout(() => {
|
||||
if (vidReady) return
|
||||
loadSource()
|
||||
}, 10000)
|
||||
}, 5000)
|
||||
|
||||
if (!vid.paused) {
|
||||
toggleStream()
|
||||
|
Reference in New Issue
Block a user