Skip to content

Commit

Permalink
Reduce the default buffering goal
Browse files Browse the repository at this point in the history
Since we no longer clear ahead of the playhead, the only way to assure
responsive visual upgrade is not to buffer too far ahead.  Therefore
our new default buffering goal is 10 seconds instead of 30 seconds.

Manual testing using Chrome's network throttling feature has shown
no increase in buffering rates, so 10 seconds seems to be enough for
stable connections.

For situations in which 10 seconds is not enough, the bufferingGoal
setting can still be customized by the application.

Closes #520

Change-Id: I248c1c93dd4cdd037e6e3ca12bb207ba54845836
  • Loading branch information
joeyparrish committed Oct 25, 2016
1 parent 4ec00f5 commit 1d9e574
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/tutorials/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ player.getConfiguration();
restrictions: Object
streaming: Object
bufferBehind: 30
bufferingGoal: 30
bufferingGoal: 10
ignoreTextStreamFailures: false
rebufferingGoal: 2
retryParameters: Object
Expand Down
2 changes: 1 addition & 1 deletion lib/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ shaka.Player.prototype.defaultConfig_ = function() {
streaming: {
retryParameters: shaka.net.NetworkingEngine.defaultRetryParameters(),
rebufferingGoal: 2,
bufferingGoal: 30,
bufferingGoal: 10,
bufferBehind: 30,
ignoreTextStreamFailures: false,
useRelativeCueTimestamps: false
Expand Down

0 comments on commit 1d9e574

Please sign in to comment.