mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-28 03:41:52 +01:00
Fix HTTP error 403 on HLS stream after switching source
This commit is contained in:
parent
c8e7f6a02f
commit
2b402ac5ba
@ -131,7 +131,7 @@ export function makeVideoElementDisplayInterface(): DisplayInterface {
|
|||||||
});
|
});
|
||||||
hls.on(Hls.Events.ERROR, (event, data) => {
|
hls.on(Hls.Events.ERROR, (event, data) => {
|
||||||
console.error("HLS error", data);
|
console.error("HLS error", data);
|
||||||
if (data.fatal) {
|
if (data.fatal && src?.url === data.frag?.baseurl) {
|
||||||
emit("error", {
|
emit("error", {
|
||||||
message: data.error.message,
|
message: data.error.message,
|
||||||
stackTrace: data.error.stack,
|
stackTrace: data.error.stack,
|
||||||
|
Loading…
Reference in New Issue
Block a user