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

fix(FEC-6916): remove resolution setting duplicates #123

Merged
merged 11 commits into from
Nov 6, 2017
Merged

Conversation

odedhutzler
Copy link
Contributor

@odedhutzler odedhutzler commented Nov 5, 2017

Description of the Changes

Created an object that is mapping between the resolution and the highest bandwidth.
When filtering the resolutions, if there are some resolutions that are equal, i will put the one with the highest bandwidth.

CheckLists

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • test are passing in local environment
  • Travis tests are passing (or test results are not worse than on master branch :))
  • Docs have been updated

let qualityOptions = props.videoTracks
.filter(t => {
return t.bandwidth || t.height
return (t.bandwidth || t.height) && (t.bandwidth === heightToBandwidthMap[t.height])
})
.sort((a, b) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not add mapHeightToMaxBandwidth logic as a filter pipe and remove it in a FP manner?

OrenMe
OrenMe previously approved these changes Nov 6, 2017
@OrenMe
Copy link
Contributor

OrenMe commented Nov 6, 2017

@odedhutzler please resolve conflict

@OrenMe OrenMe merged commit b9b62c8 into master Nov 6, 2017
@OrenMe OrenMe deleted the FEC-6916 branch November 6, 2017 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants