Skip to content

Commit

Permalink
fix(ABR): Fix HLS playback after internet connection is restored (#5879)
Browse files Browse the repository at this point in the history
Fixes #5873
  • Loading branch information
avelad authored Nov 13, 2023
1 parent 1681acd commit f5777e5
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 f5777e5

Please sign in to comment.