Skip to content

Commit

Permalink
fix: Ignore network changes if ABR is disabled (shaka-project#3387)
Browse files Browse the repository at this point in the history
  • Loading branch information
Álvaro Velad Galván committed May 5, 2021
1 parent f0f4109 commit bf51b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/abr/simple_abr_manager.js
Expand Up @@ -52,7 +52,7 @@ shaka.abr.SimpleAbrManager = class {
// of connectivity changes.
if (navigator.connection) {
navigator.connection.addEventListener('change', () => {
if (this.config_.useNetworkInformation) {
if (this.config_.useNetworkInformation && this.enabled_) {
this.bandwidthEstimator_ = new shaka.abr.EwmaBandwidthEstimator();
const chosenVariant = this.chooseVariant();
if (chosenVariant) {
Expand Down

0 comments on commit bf51b4b

Please sign in to comment.