diff --git a/lib/abr/simple_abr_manager.js b/lib/abr/simple_abr_manager.js index ba7845082e..94f8edbd9b 100644 --- a/lib/abr/simple_abr_manager.js +++ b/lib/abr/simple_abr_manager.js @@ -175,8 +175,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.