From 2b402ac5bab8a0627321291dec1c475b977609ea Mon Sep 17 00:00:00 2001 From: Jorrin Date: Fri, 9 Feb 2024 17:45:48 +0100 Subject: [PATCH] Fix HTTP error 403 on HLS stream after switching source --- src/components/player/display/base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/player/display/base.ts b/src/components/player/display/base.ts index 481c1982..9b163363 100644 --- a/src/components/player/display/base.ts +++ b/src/components/player/display/base.ts @@ -131,7 +131,7 @@ export function makeVideoElementDisplayInterface(): DisplayInterface { }); hls.on(Hls.Events.ERROR, (event, data) => { console.error("HLS error", data); - if (data.fatal) { + if (data.fatal && src?.url === data.frag?.baseurl) { emit("error", { message: data.error.message, stackTrace: data.error.stack,