diff --git a/lib/abr/simple_abr_manager.js b/lib/abr/simple_abr_manager.js index 8f3d866c0c..dfc02f83ce 100644 --- a/lib/abr/simple_abr_manager.js +++ b/lib/abr/simple_abr_manager.js @@ -182,8 +182,8 @@ shaka.abr.SimpleAbrManager = class { if (this.resizeObserver_ && this.config_.restrictToElementSize) { const devicePixelRatio = this.config_.ignoreDevicePixelRatio ? 1 : window.devicePixelRatio; - maxHeight = this.mediaElement_.clientWidth * devicePixelRatio; - maxWidth = this.mediaElement_.clientHeight * devicePixelRatio; + maxHeight = this.mediaElement_.clientHeight * devicePixelRatio; + maxWidth = this.mediaElement_.clientWidth * devicePixelRatio; } // Get sorted Variants.