can't change initial buffer size in VLC_controls.js

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
iwata
Blank Cone
Blank Cone
Posts: 27
Joined: 31 Mar 2009 00:52

can't change initial buffer size in VLC_controls.js

Postby iwata » 07 Apr 2009 17:25

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 ?

revolunet
Big Cone-huna
Big Cone-huna
Posts: 515
Joined: 17 Oct 2007 13:16
VLC version: 0.9.8
Operating System: Vista
Location: Paris, France
Contact:

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

Postby revolunet » 07 Apr 2009 17:28

use

Code: Select all

vlccontrols.options.set("http-caching", 5000);
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet

iwata
Blank Cone
Blank Cone
Posts: 27
Joined: 31 Mar 2009 00:52

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

Postby iwata » 07 Apr 2009 22:09

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 :)

revolunet
Big Cone-huna
Big Cone-huna
Posts: 515
Joined: 17 Oct 2007 13:16
VLC version: 0.9.8
Operating System: Vista
Location: Paris, France
Contact:

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

Postby revolunet » 07 Apr 2009 23:18

as we say here : "l'important c'est que ca marche ;)"
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 4 guests