click on video-> play video

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
Reenman
New Cone
New Cone
Posts: 7
Joined: 03 Jul 2008 14:11

click on video-> play video

Postby Reenman » 03 Jul 2008 14:18

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?

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: click on video-> play video

Postby revolunet » 03 Jul 2008 17:05

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

Reenman
New Cone
New Cone
Posts: 7
Joined: 03 Jul 2008 14:11

Re: click on video-> play video

Postby Reenman » 04 Jul 2008 10:52

Can anyone give me an example please?

twebb72
New Cone
New Cone
Posts: 7
Joined: 10 Jul 2008 11:01

Re: click on video-> play video

Postby twebb72 » 10 Jul 2008 11:37

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.
Last edited by twebb72 on 10 Jul 2008 11:44, edited 1 time in total.

twebb72
New Cone
New Cone
Posts: 7
Joined: 10 Jul 2008 11:01

Re: click on video-> play video

Postby twebb72 » 10 Jul 2008 11:44

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.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 8 guests