Page 1 of 1

Activating controls on VLC plug-in

Posted: 09 Nov 2009 22:41
by ratlake
This is probably a really stupid question since all the sample code I have found is pretty consistent on the subject of controls but I can't get them to work...

Running the following code, nothing works (ie I get the video waiting) and the controls trigger the error console message "document.video1.play is not a function"

If I change the autoplay to "yes", I get the video working fine but the controls still don't work.

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>VLC Plug-in Demo- Unicast from DVBViewer</title> <body> <h1>VLC RTSP</h1> <embed type="application/x-vlc-plugin" name="video1" autoplay="no" loop="yes" target="http://192.168.197.18:1234"/> <br /> <input value="Play" onclick="document.video1.play();" type="button"> <input value="Pause" onclick="document.video1.pause();" type="button"> <input value="Stop" onclick="document.video1.stop();" type="button"> </head> </body> </html>
I have javascript enabled with all the permissions I can find set to yes...

Any help/pointers would be just splendid 'cause I'm all out of ideas...

Nick

Re: Activating controls on VLC plug-in

Posted: 09 Nov 2009 23:00
by ratlake
OK, I really did look for similar posts but the second I posted this I found one that was similar from Cromartie888 back in Feb - viewtopic.php?f=16&t=55544#p183515..

And his code snippet works. Don't know why yet but clearly the problem is down to me.

10,000 apologies...