forked from Fijxu/invidious
decrease buffer seconds for saving bandwidth
This commit is contained in:
parent
33ffafb9e3
commit
b3e6aaddab
1 changed files with 3 additions and 0 deletions
|
@ -51,6 +51,9 @@ videojs.Vhs.xhr.beforeRequest = function(options) {
|
|||
return options;
|
||||
};
|
||||
|
||||
videojs.Vhs.GOAL_BUFFER_LENGTH = 20;
|
||||
videojs.Vhs.MAX_GOAL_BUFFER_LENGTH = 30;
|
||||
|
||||
var player = videojs('player', options);
|
||||
|
||||
player.on('error', function () {
|
||||
|
|
Loading…
Reference in a new issue