Page 1 of 1

how to use onNewPosition of slider using vlccontrol object

Posted: 27 Mar 2009 18:11
by silvia15
hi,

in the application i am using firefox3.0.5 and vlc0.9.8a and windows os.
i want to trigger a function using onNewPosition of slider. this I want using vlccontrol object.
I am calling this function using
vlc_control.slider.onNewPosition = changeImage();

changeimage is the function that i want to call on slider position change.
requirement is whenever the vlc_control.target.input.time equals a specific time(in millisecs) that is selected, it should call changeimage function.
i am trying to use onNewPosition but it is not calling the function.
what could be the reason, since this is the way how onNewPosition is called in VLCcontrol.js file.
can anybody help me out in this?

Re: how to use onNewPosition of slider using vlccontrol object

Posted: 31 Mar 2009 10:08
by revolunet
use something like :

Code: Select all

myslider.onNewPosition = function() { document.getElementById("slider1_label").innerHTML = parseInt(myslider.position * 100 * 100) / 100; }
as said in the docs : http://www.revolunet.com/labo/code/SimpleSlider

Re: how to use onNewPosition of slider using vlccontrol object

Posted: 01 Apr 2009 08:45
by silvia15
thanks .