Browse Source

hls: fix infinite loop in web client when reading incompatible codecs (#2956)

when a player received a stream with incompatible codecs, it started
polling the server for index.m3u8 in an infinite loop. This was caused
by #2631
pull/2957/head
Alessandro Ros 1 year ago committed by GitHub
parent
commit
7d0e702f14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      internal/servers/hls/index.html

4
internal/servers/hls/index.html

@ -33,9 +33,7 @@ const create = (video) => { @@ -33,9 +33,7 @@ const create = (video) => {
});
hls.on(Hls.Events.ERROR, (evt, data) => {
if (data.type === Hls.ErrorTypes.MEDIA_ERROR)
hls.recoverMediaError();
else if (data.fatal) {
if (data.fatal) {
hls.destroy();
setTimeout(() => create(video), 2000);
}

Loading…
Cancel
Save