From 56b3171d627e0bfcde4c253f3c20e907fca327e5 Mon Sep 17 00:00:00 2001 From: Pas <74743263+Pasithea0@users.noreply.github.com> Date: Sun, 19 Jan 2025 11:57:24 -0700 Subject: [PATCH] Revert "add fragment 404 notice" This reverts commit dc7d5ef7f485538781304574be1ddf51c922ab06. --- src/components/player/display/base.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/components/player/display/base.ts b/src/components/player/display/base.ts index 85252b1d..c1ec707b 100644 --- a/src/components/player/display/base.ts +++ b/src/components/player/display/base.ts @@ -173,8 +173,6 @@ export function makeVideoElementDisplayInterface(): DisplayInterface { }); const exceptions = [ "Failed to execute 'appendBuffer' on 'SourceBuffer': This SourceBuffer has been removed from the parent media source.", - "HTTP Error 404", - "HTTP Error 404 Not Found", ]; hls?.on(Hls.Events.ERROR, (event, data) => { console.error("HLS error", data); @@ -191,20 +189,6 @@ export function makeVideoElementDisplayInterface(): DisplayInterface { }); } }); - const skip404 = ["HTTP Error 404", "HTTP Error 404 Not Found"]; - hls?.on(Hls.Events.ERROR, (event, data) => { - console.error("HLS error", data); - if ( - data.fatal && - src?.url === data.frag?.baseurl && - skip404.includes(data.error.message) - ) { - // eslint-disable-next-line no-alert - alert( - "HLS error 404: Part of the video is missing, please try again later or use a different source!", - ); - } - }); hls.on(Hls.Events.MANIFEST_LOADED, () => { if (!hls) return; reportLevels();