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

Max value limited by portal size #2515

Conversation

aescarcha
Copy link
Contributor

This PR adds a new method to the MediaPlayer to get the top quality BitrateInfo. It calls getTopQualityIndexFor internally so portal size and max bitrate are checked. #2463

@epiclabsDASH
Copy link
Contributor

@dsparacio, this is covering the requirement you had regarding retrieving max bitrate limited by portal dimensions (in case limitByPortal is set to true).

This new method is returning a BitrateInfo object, while all the other methods related with retrieving bitrate related config (getMaxAllowedBitrateFor, setInitialBitrate) return bitrates as numbers. Don't like too much breaking "homogeneity" (without reading doc I would expect a number) although in this case I am wonder if from the point of view of developer could be useful getting more details about the top bitrate than just its bits per second (ex: resolution). @dsparacio, what do you think?

Copy link
Contributor

@dsparacio dsparacio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and should solve our issue. Thanks for the fix

@epiclabsDASH epiclabsDASH merged commit 9b89507 into Dash-Industry-Forum:development May 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants