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-8415): kava should report bitrate in kbps #21

Merged
merged 3 commits into from
Jul 18, 2018
Merged

Conversation

OrenMe
Copy link
Contributor

@OrenMe OrenMe commented Jul 17, 2018

Description of the Changes

convert bps to kbps unit for reporting bitrate.

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

@OrenMe OrenMe added the bug label Jul 17, 2018
@OrenMe OrenMe self-assigned this Jul 17, 2018
@OrenMe OrenMe requested a review from dan-ziv July 17, 2018 15:03
src/kava.js Outdated
@@ -174,7 +174,7 @@ class Kava extends BasePlugin {
_getRates(): Array<number> {
const rates = [];
const videoTracks = this.player.getTracks(this.player.Track.VIDEO);
videoTracks.forEach(videoTrack => rates.push(videoTrack.bandwidth));
videoTracks.forEach(videoTrack => rates.push(videoTrack.bandwidth / 1024));
Copy link
Contributor

Choose a reason for hiding this comment

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

Move to const

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dan-ziv done, please review

@OrenMe OrenMe merged commit fc52347 into master Jul 18, 2018
@OrenMe OrenMe deleted the FEC-8415 branch July 18, 2018 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants