Can VLC and the Slider be separated using VLCcontrols.js

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

Can VLC and the Slider be separated using VLCcontrols.js

Postby silvia15 » 20 Mar 2009 09:31

Hi,

I am using VLCcontrols and SimpleSlider.js for developing a web application.
I am using FireFox3.0.5, VLC 0.9.8a and windows OS.

I have tried a simpleSlider example. It displays slider only. but if I want to associate this slider with the vlc player,how to do that.
Code below:
function init()
{
var myvlc = new VLCObject("mymovie", "400", "200", "0.8.6");
myvlc.write("vlccontent");

(1) vlc_controls = new VLCcontrols(myvlc);

vlc_controls.options.set("ffmpeg-pp-q", 6);
//vlc_controls.options.set("start-time", 60);
vlc_controls.onready = function () {
vlc_controls.play("videos/abc.wmv");

}


(2) var myslider = new Slider("slider1", 400, 10, bgcolor="silver", fgcolor="#666666");
myslider.onNewPosition = function()
{
document.getElementById("slider1_label").innerHTML = parseInt(myslider.position * 100 * 100) / 100;
}

}
if i comment (1) and uncomment (2) ,o/p displays vlc player with the slider but with no buttons.
if Uncomment(1) and comment (2), o/p displayes vlc player with all the functionality.

What I need is to separate Vlc and slider and add all the functionality(like play,pause etc).

How can we do this?
Last edited by silvia15 on 24 Mar 2009 12:47, edited 1 time in total.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Can VLC and the Slider be separated using VLCcontrols.js

Postby Jean-Baptiste Kempf » 20 Mar 2009 12:19

revolunet?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

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 VLC and the Slider be separated using VLCcontrols.js

Postby revolunet » 20 Mar 2009 17:03

you should tweak the code inside VLCcontrols.js

keep the current but just position it with css, it should be enough
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: Can VLC and the Slider be separated using VLCcontrols.js

Postby silvia15 » 24 Mar 2009 10:24

i am working around the css to separate the video and the slider in vlccontrol.js , but could not succeeded. can you elaborate more on this.
thanks


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 4 guests