<script>
function GE(name)
{
return document.getElementById(name);
};
function DW(s)
{
document.write(s);
};
function reConnect()
{
var obj = GE("Activex");
obj.Stop();
obj.URL = "192.168.0.20";
obj.User = "admin";
obj.Password = "";
//nowprofileid=1~3 ,audiostream 0 is off , 1 is on
obj.ReqCommand = "/ipcam/stream.cgi?nowprofileid=1"+'&audiostream=1';
//obj.ReqCommand = "/ipcam/stream.cgi?nowprofileid=1"+'&audiostream=0';
obj.HttpPort = 80;
obj.Width = 720;
obj.Height = 480;
//Status must be use 0
obj.Status(0);
//0:ulaw 1:g726 2:aac
obj.AudioType = 2;
obj.Start();
};
DW('<HTML><HEAD><TITLE>MFC Activex</TITLE></HEAD><BODY>');
DW('<table border=3 ><tr><td><object id="Activex" WIDTH="1280" HEIGHT="960" CLASSID="CLSID:2D20E99C-1FD7-48EC-9FDF-CF3555B273D4" CODEBASE="VDControl.CAB#version=2,0,0,47"></object></td></tr></table>');
DW("</BODY></HTML>");
reConnect();
</script>