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

feat: add initialBandwidth option at the tech level #1122

Merged
merged 2 commits into from
Apr 27, 2021
Merged

Conversation

gkatsev
Copy link
Member

@gkatsev gkatsev commented Apr 27, 2021

No description provided.

@codecov
Copy link

codecov bot commented Apr 27, 2021

Codecov Report

Merging #1122 (28c8589) into main (ab305f8) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1122   +/-   ##
=======================================
  Coverage   86.15%   86.15%           
=======================================
  Files          39       39           
  Lines        9252     9254    +2     
  Branches     2114     2115    +1     
=======================================
+ Hits         7971     7973    +2     
  Misses       1281     1281           
Impacted Files Coverage Δ
src/videojs-http-streaming.js 90.58% <100.00%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ab305f8...28c8589. Read the comment docs.

@brandonocasey
Copy link
Contributor

I wonder if we should deprecate bandwidth during the next major

@gkatsev gkatsev merged commit 2071008 into main Apr 27, 2021
@gkatsev gkatsev deleted the initial-bandwidth branch April 27, 2021 21:27
this.clock.tick(1);

openMediaSource(this.player, this.clock);
assert.equal(this.player.tech_.vhs.bandwidth, 0, 'set bandwidth to 0');
Copy link
Contributor

Choose a reason for hiding this comment

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

Kinda minor, but here and below, the test values being only 0 may run into issues if bandwidth is ever initialized in the future.

@@ -511,6 +511,12 @@ class VhsHandler extends Component {
videojs.log.warn('Using hls options is deprecated. Use vhs instead.');
}

// if a tech level `initialBandwidth` option was passed
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably worth documentating and mentioning that it takes precedence over VHS level bandwidth but not source level bandwidth.

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.

3 participants