Skip to content

Commit

Permalink
Perform playlist retries before redundant failover and level switch (#…
Browse files Browse the repository at this point in the history
…5420)

(Pathway switch is still prioritized over retries when available)
Fixes #5419
  • Loading branch information
robwalch authored Apr 26, 2023
1 parent 7802cfc commit 77ced53
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/controller/base-playlist-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,11 @@ export default class BasePlaylistController implements NetworkComponentAPI {
const errorAction = errorEvent.errorAction;
const { action, retryCount = 0, retryConfig } = errorAction || {};
const retry =
action === NetworkErrorAction.RetryRequest &&
!!errorAction &&
!!retryConfig;
!!retryConfig &&
(action === NetworkErrorAction.RetryRequest ||
(!errorAction.resolved &&
action === NetworkErrorAction.SendAlternateToPenaltyBox));
if (retry) {
this.requestScheduled = -1;
if (isTimeout && errorEvent.context?.deliveryDirectives) {
Expand Down

0 comments on commit 77ced53

Please sign in to comment.