Skip to content

Commit

Permalink
fix: Avoid firing SEGMENT_MISSING when there is an alternative (#6881)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored Jun 21, 2024
1 parent c90bc5f commit aed859b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/media/streaming_engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -2768,7 +2768,10 @@ shaka.media.StreamingEngine = class {
}

// First fire an error event.
this.playerInterface_.onError(error);
if (!error.handled ||
error.code != shaka.util.Error.Code.SEGMENT_MISSING) {
this.playerInterface_.onError(error);
}

// If the error was not handled by the application, call the failure
// callback.
Expand Down

0 comments on commit aed859b

Please sign in to comment.