VLC plugin to record video (working in IE but not in FF)

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
suphya4u
New Cone
New Cone
Posts: 2
Joined: 28 May 2008 13:43

VLC plugin to record video (working in IE but not in FF)

Postby suphya4u » 29 May 2008 15:20

I am using VLC plugin to record video from my webcam on to disk.
Following is the code I am using for that.
This works fine in IE, however in firefox I am getting error "vlc.playlist has no properties".
can somebody pleaze point me out what changes are needed to get it working on firefox.

Code: Select all

<HTML> <TITLE>VLC ActiveX plugin test page</TITLE> <BODY> <TABLE> <TR><TD colspan="2"> MRL: <INPUT size="90" id="targetTextField" value=""> <INPUT type=submit value="Go" onClick="doGo(document.getElementById('targetTextField').value);"> </TD></TR> <TR><TD colspan="2"> <!-- Insert VideoLAN.VLCPlugin.2 activex control --> <OBJECT classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab#Version=0,8,6,0" width="320" height="240" id="vlc" events="True"> <param name="MRL" value="" /> <param name="AutoPlay" value="False" /> <param name="Volume" value="50" /> </OBJECT> </TD></TR> </TABLE> <SCRIPT language="javascript"> <!-- function doGo(targetURL) { var vlc = document.getElementById("vlc"); var options = new Array(":dshow-size=320*240", ":vout-filter=deinterlace", ":deinterlace-mode=linear", ":sout=#transcode{vcodec=mp4v,vb=96,scale=1,acodec=mpag,ab=16,channels=1}:duplicate{dst=display,dst=std{access=file,mux=mov,dst=\"C:\\tp.ogg\"}}"); vlc.playlist.clear(); vlc.playlist.add(targetURL, null, options); vlc.playlist.play(); }; </SCRIPT> </BODY> </HTML>

SteveRicketts
Blank Cone
Blank Cone
Posts: 53
Joined: 29 May 2008 00:10

Re: VLC plugin to record video (working in IE but not in FF)

Postby SteveRicketts » 02 Jun 2008 17:43

FF doesn't support ActiveX controls like Internet Explorer does. Check the link at the top of this forum (link below) for a discussion on using Javascript API's.

viewtopic.php?f=16&t=29654

Steve

xiaotuzihehe
New Cone
New Cone
Posts: 2
Joined: 07 Apr 2013 03:36

Re: VLC plugin to record video (working in IE but not in FF)

Postby xiaotuzihehe » 07 Apr 2013 03:42

Dear suphya4u,

Why vlc plugin to record video doesn't work when I using your code that you posted(in IE)?
What is your vlc version ?
Thansk you!


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 1 guest