Maybe this will help

This commit is contained in:
Evert Prants 2019-10-23 17:39:55 +03:00
parent e9207055d5
commit e255d5f59a
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -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()