Revert "add fragment 404 notice"

This reverts commit dc7d5ef7f4.
This commit is contained in:
Pas 2025-01-19 11:57:24 -07:00
parent 1febd78f2b
commit 56b3171d62

View file

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