Skip to content

Commit

Permalink
fix: remove 404 check and infinite retry from streaming_engine.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tecteun committed Feb 10, 2022
1 parent d3c631a commit 8e5929d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/media/streaming_engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,7 @@ shaka.media.StreamingEngine = class {
} else if (error.code == shaka.util.Error.Code.QUOTA_EXCEEDED_ERROR) {
this.handleQuotaExceeded_(mediaState, error);
} else if (error.code == shaka.util.Error.Code.BAD_HTTP_STATUS &&
error.data && error.data[1] == 404) {
error.data && error.data[1] == 404 && this.manifest_.presentationTimeline.isLive()) {
// The segment could not be found, does not exist, or is not available.
// In any case just try again.
// The current segment is not available. Schedule another update to
Expand Down

0 comments on commit 8e5929d

Please sign in to comment.