Skip to content

Commit

Permalink
fix: gettting maxWidth and maxHeight for restrictToElementSize option (
Browse files Browse the repository at this point in the history
  • Loading branch information
hcodes authored Aug 15, 2023
1 parent e8f3ed0 commit 9a3ac18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/abr/simple_abr_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9a3ac18

Please sign in to comment.