mirror of
https://github.com/sussy-code/smov.git
synced 2026-01-11 20:10:16 +00:00
try to fix hls error on mp4
This commit is contained in:
parent
765012f090
commit
128edf08af
1 changed files with 6 additions and 1 deletions
|
|
@ -170,7 +170,12 @@ export function makeVideoElementDisplayInterface(): DisplayInterface {
|
|||
});
|
||||
hls.on(Hls.Events.ERROR, (event, data) => {
|
||||
console.error("HLS error", data);
|
||||
if (data.fatal && src?.url === data.frag?.baseurl) {
|
||||
if (
|
||||
data.fatal &&
|
||||
src?.url === data.frag?.baseurl &&
|
||||
data.error.message !==
|
||||
"This SourceBuffer has been removed from the parent media source."
|
||||
) {
|
||||
emit("error", {
|
||||
message: data.error.message,
|
||||
stackTrace: data.error.stack,
|
||||
|
|
|
|||
Loading…
Reference in a new issue