mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-06 21:49:23 +00:00
parent
1febd78f2b
commit
56b3171d62
1 changed files with 0 additions and 16 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue