Skip to content

Commit

Permalink
fix(ABR): Fix HLS playback after internet connection is restored (sha…
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored and Rodolphe Breton committed Nov 30, 2023
1 parent abca846 commit 66c4cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/abr/simple_abr_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ shaka.abr.SimpleAbrManager = class {
this.bandwidthEstimator_.configure(this.config_.advanced);
}
const chosenVariant = this.chooseVariant();
if (chosenVariant) {
if (chosenVariant && navigator.onLine) {
this.switch_(chosenVariant, this.config_.clearBufferSwitch,
this.config_.safeMarginSwitch);
}
Expand Down

0 comments on commit 66c4cac

Please sign in to comment.