How to seek through the video using VLCcontols.js file

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 seek through the video using VLCcontols.js file

Postby silvia15 » 17 Mar 2009 10:50

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.

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 seek through the video using VLCcontols.js file

Postby revolunet » 17 Mar 2009 10:52

you can access the core VLC plugin with myvlc.target

then set the myvlc.target.input.time property
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 seek through the video using VLCcontols.js file

Postby silvia15 » 17 Mar 2009 12:21

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

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 seek through the video using VLCcontols.js file

Postby revolunet » 17 Mar 2009 12:30

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 seek through the video using VLCcontols.js file

Postby silvia15 » 17 Mar 2009 12:36

thanks, its working.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 6 guests