Page 1 of 1

click on video-> play video

Posted: 03 Jul 2008 14:18
by Reenman
Hello,

I use the Mozilla-Plugin to show Videos with VLC on a website.
Now I want to start the video when ein click on the Video, like youtube, you know?
I don't want to have any Play/Stop Buttons, but without buttons I can't start the Video, I just want to click directly on the video to start...

Is this possible? Can everyone give me the html or java-code?

Re: click on video-> play video

Posted: 03 Jul 2008 17:05
by revolunet
If you read http://wiki.videolan.org/Documentation: ... d_above.29

whats your interested in is :

vlc.playlist.add(mrl) or vlc.playlist.add(mrl,name,options)

then you just have to vlc.playlist.play()

remember to vlc.playlist.clear() before adding a new item if you dont want playlist behaviour

(its all javascript of course)

Re: click on video-> play video

Posted: 04 Jul 2008 10:52
by Reenman
Can anyone give me an example please?

Re: click on video-> play video

Posted: 10 Jul 2008 11:37
by twebb72
well, its not quite youtube format, because the youtube format is presented in flash... which certainly adds another layer of complexity to your project, however I would probably approach the problem first by simple DOM techniques like placing a <div> with an image over the embedder player and calling the javascript commands from the onclick event of that <div>
doing an overlay (or perhaps some custom embedding?) would be the next step, but since the api is in javascript, you'd still call external javascript commands via actionscript.
My first recommendation is just as straightforward as making a <input type="button"> make the request, so I'm not sure if this helps.

Re: click on video-> play video

Posted: 10 Jul 2008 11:44
by twebb72
Sorry, after viewing only a couple messages down I found this...
viewtopic.php?f=16&t=47887

Looks like you cant overlay any DOM objects over the plugin in FF for definate (possibly in IE, however unlikely).
You're back to the drawing board.

A flash version of the vlc plugin would be gnarley though!!
VideoLAN should implement something like this, it would skyrocket its use online I think.