how to use onNewPosition of slider using vlccontrol object

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
silvia15
New Cone
New Cone
Posts: 9
Joined: 17 Mar 2009 06:24

how to use onNewPosition of slider using vlccontrol object

Postby silvia15 » 27 Mar 2009 18:11

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?

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: how to use onNewPosition of slider using vlccontrol object

Postby revolunet » 31 Mar 2009 10:08

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
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet

silvia15
New Cone
New Cone
Posts: 9
Joined: 17 Mar 2009 06:24

Re: how to use onNewPosition of slider using vlccontrol object

Postby silvia15 » 01 Apr 2009 08:45

thanks .


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 13 guests