Browse Source

Merge pull request #891 from movie-web/fix/#887

Fix HTTP error 403 on HLS stream after switching source
pull/893/head
William Oldham 2 years ago committed by GitHub
parent
commit
2948e74c22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      src/components/player/display/base.ts

2
src/components/player/display/base.ts

@ -131,7 +131,7 @@ export function makeVideoElementDisplayInterface(): DisplayInterface { @@ -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,

Loading…
Cancel
Save