Page 1 of 1

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

Posted: 29 May 2008 15:20
by suphya4u
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>

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

Posted: 02 Jun 2008 17:43
by SteveRicketts
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

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

Posted: 07 Apr 2013 03:42
by xiaotuzihehe
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!