diff --git a/lib/abr/simple_abr_manager.js b/lib/abr/simple_abr_manager.js index 0b5a885ffc..8f3d866c0c 100644 --- a/lib/abr/simple_abr_manager.js +++ b/lib/abr/simple_abr_manager.js @@ -48,6 +48,9 @@ shaka.abr.SimpleAbrManager = class { /** @private {shaka.abr.EwmaBandwidthEstimator} */ this.bandwidthEstimator_ = new shaka.abr.EwmaBandwidthEstimator(); + /** @private {?function():void} */ + this.onNetworkInformationChange_ = null; + // Some browsers implement the Network Information API, which allows // retrieving information about a user's network connection. We listen // to the change event to be able to make quick changes in case the type @@ -98,9 +101,6 @@ shaka.abr.SimpleAbrManager = class { /** @private {ResizeObserver} */ this.resizeObserver_ = null; - /** @private {?function():void} */ - this.onNetworkInformationChange_ = null; - /** @private {shaka.util.Timer} */ this.resizeObserverTimer_ = new shaka.util.Timer(() => { if (this.config_.restrictToElementSize) {