diff --git a/lib/player.js b/lib/player.js index bdb52cbfed..e3c74dca97 100644 --- a/lib/player.js +++ b/lib/player.js @@ -2817,11 +2817,10 @@ shaka.Player = class extends shaka.util.FakeEventTarget { * @private */ createCmcd_() { - const abr = this.abrManager_; - /** @type {shaka.util.CmcdManager.PlayerInterface} */ const playerInterface = { - getBandwidthEstimate: () => abr ? abr.getBandwidthEstimate() : NaN, + getBandwidthEstimate: () => this.abrManager_ ? + this.abrManager_.getBandwidthEstimate() : NaN, getBufferedInfo: () => this.getBufferedInfo(), getCurrentTime: () => this.video_ ? this.video_.currentTime : 0, getVariantTracks: () => this.getVariantTracks(),