1
0
Fork 0
forked from Fijxu/invidious

decrease buffer seconds for saving bandwidth

This commit is contained in:
Emilien Devos 2022-06-10 17:38:49 +02:00 committed by Fijxu
parent 33ffafb9e3
commit b3e6aaddab
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4

View file

@ -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 () {