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>