Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignoreDevicePixelRatio option #3765

Merged
merged 8 commits into from Feb 9, 2022
Merged

ignoreDevicePixelRatio option #3765

merged 8 commits into from Feb 9, 2022

Conversation

i8beef
Copy link
Contributor

@i8beef i8beef commented Apr 13, 2021

This PR will...

Adds a configuration value to ignore devicePixelRatio in dimension calculations.

Why is this Pull Request needed?

Currently devicePixelRatio is always used in dimension calculation for stream choice by resolution. Dimensions set by a page developer for a video element, which may be chosen specifically for bandwidth limits, explicit quality limits, etc. will be silently adjusted without recourse, removing any control of stream choice from development time to environmental context instead.

This setting will allow those that need this explicit control to turn off devicePixelRatio adjustment for these calculations.

Are there any points in the code the reviewer needs to double check?

No

Resolves issues:

3647

Checklist

  • [*] changes have been done against master branch, and PR does not conflict
  • [*] new unit / functional tests have been added (whenever applicable)
  • [*] API or design changes are documented in API.md

src/hls.ts Outdated Show resolved Hide resolved
@i8beef i8beef requested a review from robwalch April 18, 2021 16:34
robwalch
robwalch previously approved these changes Apr 19, 2021
@robwalch robwalch added this to the 1.1.0 milestone Apr 19, 2021
@robwalch robwalch linked an issue Apr 19, 2021 that may be closed by this pull request
@robwalch robwalch added this to Top priorities in Release Planning and Backlog Jun 20, 2021
@robwalch robwalch modified the milestones: 1.1.0, 1.2.0 Nov 10, 2021
@gkatsev
Copy link
Member

gkatsev commented Feb 4, 2022

@i8beef hey, it's been a while. Are you able to rebase/update this PR and resolve merge conflicts? Would make it easier to get this PR (finally) landed.

@i8beef
Copy link
Contributor Author

i8beef commented Feb 5, 2022

Ok, I pulled and rebuilt without any issues which regenerated that md file for you. Not sure what else to do.

@gkatsev
Copy link
Member

gkatsev commented Feb 5, 2022

I think that's it. Thanks!

@robwalch robwalch merged commit 5784545 into video-dev:master Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Release Planning and Backlog
  
Top priorities
Development

Successfully merging this pull request may close these issues.

capLevelToPlayerSize and devicePixelRatio
4 participants