Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Added GOAL_BUFFER_LENGTH_BEFORE_PLAYING option #927

Closed

Conversation

servercimen
Copy link

Description

Currently, it is not possible to configure goal buffer length for when the player hasn't started played. 1 is hard coded. This pull request moves that value to a config option.

Specific Changes proposed

Move hard coded value to config option.

Requirements Checklist

  • [X ] Feature implemented / Bug fixed
  • If necessary, more likely in a feature request than a bug fix
  • Reviewed by Two Core Contributors

Copy link
Contributor

@gesinger gesinger left a comment

Choose a reason for hiding this comment

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

Sorry the PR has gone on for a while without much response.

@servercimen , are you still looking for this feature?

If so, would it be possible to update it to use the goalBufferLength function in MasterPlaylistController and add some tests and a README update?

Thanks for the contribution!

@@ -433,7 +433,8 @@ export default class SegmentLoader extends videojs.EventTarget {

// if the video has not yet played once, and we already have
// one segment downloaded do nothing
if (!hasPlayed && bufferedTime >= 1) {

if (!hasPlayed && bufferedTime >= Config.GOAL_BUFFER_LENGTH_BEFORE_PLAYING) {
Copy link
Contributor

Choose a reason for hiding this comment

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

We now have a function, goalBufferLength in MasterPlaylistController that may be a good spot for this to exist.

@forbesjo
Copy link
Contributor

Thank you for your PR but we wont be adding this setting at this time since there doesn't seem to be much demand.

@forbesjo forbesjo closed this Aug 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants