Page 1 of 1

can't change initial buffer size in VLC_controls.js

Posted: 07 Apr 2009 17:25
by iwata
var VLC_controller_default_buffersize = "5";

I would expect that changing this value ( 7 ,10 , etc..) in VLCcontrols.js would provide a new *default* buffersize value ; but it does not happen , it sticks to 5 sec (5*1000) ...


so how/where can I set a new default buffer time value ?

Re: can't change initial buffer size in VLC_controls.js

Posted: 07 Apr 2009 17:28
by revolunet
use

Code: Select all

vlccontrols.options.set("http-caching", 5000);

Re: can't change initial buffer size in VLC_controls.js

Posted: 07 Apr 2009 22:09
by iwata
you probably have many codes for your Plug due to the ongoing dev' , at least that's what I guessed , not finding any code line :

vlccontrols.options.set("http-caching", 5000);

but instead, I have this :

this.options.set("http-caching", parseInt(VLC_controller_default_buffersize) * 1000);

so I have used there of 2000ms (instead of 1000) and it's okay, I get the 10 sec preload I wanted , according to the "5" buffer size value, mentioned above in my previous post, and where I get no change if I set it to 10*1000. BTW any idea why it does not end in 10sec and ...sticks to 5sec !

anyway, for me it's okay, unless you think of anything against doing like this (?)

edit: ooops, thnx indeed for the help :)

Re: can't change initial buffer size in VLC_controls.js

Posted: 07 Apr 2009 23:18
by revolunet
as we say here : "l'important c'est que ca marche ;)"