Fix HTTP error 403 on HLS stream after switching source

This commit is contained in:
Jorrin 2024-02-09 17:45:48 +01:00
parent c8e7f6a02f
commit 2b402ac5ba

View file

@ -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,