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

Define bitrate value for starting of adaptive streaming. #268

Closed
tbournez opened this issue Jan 15, 2016 · 2 comments
Closed

Define bitrate value for starting of adaptive streaming. #268

tbournez opened this issue Jan 15, 2016 · 2 comments
Assignees
Labels
status: archived Archived and locked; will not be updated type: enhancement New feature or request
Milestone

Comments

@tbournez
Copy link

Hello.

Is it a way to define the bitrate for starting playback ?

We want to start our video in good quality and not with the lowest quality.

Thanks and Regards

Thomas

@joeyparrish joeyparrish added the type: enhancement New feature or request label Jan 15, 2016
@joeyparrish joeyparrish added this to the v2.0.0 milestone Jan 15, 2016
@joeyparrish joeyparrish self-assigned this Jan 15, 2016
@joeyparrish
Copy link
Member

We don't have a direct way to do that right now. I will add a configuration parameter for that in v2.0.

The way it works right now, your default bandwidth estimator has a hard-coded starting estimate that it uses until it collects enough data to make a good estimate. This is a property of the default estimator, but the estimator can be replaced at runtime with your own.

So here are your options before v2.0 comes out:

  1. modify this.defaultEstimate_ in lib/util/ewma_bandwidth_estimator.js (default is a conservative 500kbps)
  2. inject your own implementation of IBandwidthEstimator as the third argument to DashVideoSource's constructor, which can behave in any way you like
  3. disable adaptation during your first playback and select a track explicitly until some time has passed and the estimator has enough data to make a good decision

Also, if your app plays multiple videos without reloading the page, you should also make sure you are always providing an explicit bandwidth estimator instance to DashVideoSource. That way, data collected from the first playback can be used to make an immediate good choice for subsequent playbacks.

@tbournez
Copy link
Author

Thank you for your answer. I just try the first solution and it works. I'll try the 2 and 3 and choose the best. If we can have this in v2.0 it is great !!

@shaka-project shaka-project locked and limited conversation to collaborators Mar 22, 2018
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Apr 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants