Page 1 of 1

How to seek through the video using VLCcontols.js file

Posted: 17 Mar 2009 10:50
by silvia15
Hi,

Using Firefox3.0.5, VLC0.9.8a and Windows OS for the applicaiton.
I am using VLCobject and VLCcontrols javascript files to embed vlc player in a web page.
I want to seek through the video at any point whatever value is passed.
Can this be done using VLCcontrols.js file.
Can we set the vlc.input.time using VCLcontrols object.
Code given below:
myvlc = new VLCObject("mymovie", "350", "240");
myvlc.write("vlccontent");
vlc_controls = new VLCcontrols(myvlc);

Since vlc.input.time is in milliseconds, how it is calculated for a video.

Thanks in Advance.

Re: How to seek through the video using VLCcontols.js file

Posted: 17 Mar 2009 10:52
by revolunet
you can access the core VLC plugin with myvlc.target

then set the myvlc.target.input.time property

Re: How to seek through the video using VLCcontols.js file

Posted: 17 Mar 2009 12:21
by silvia15
Hi,

can you explain how this can be achieved. Not clear with how to access core VLC plugin with myvlc.target.
I tried the below code
function ChangeSlider()
{
//alert('Change Slider');
myvlc.target.input.time = 57791;
vlc_controls.updateStatus();
}
Still not getting the result.
Is this correct.
Thanks

Re: How to seek through the video using VLCcontols.js file

Posted: 17 Mar 2009 12:30
by revolunet

Re: How to seek through the video using VLCcontols.js file

Posted: 17 Mar 2009 12:36
by silvia15
thanks, its working.