Thanks a Lot!!! ECF, your answer save me.
gracias compadre!!
Is a old theme, but worked for me now
Saddly work only in IE (WTF)
, by activex . If useful for any person I give you the Know How...
(To Chrome I tried other code)
To IE...
Code to dowload an install .cab
<OBJECT classid="CLSID:721700FE-7F0E-49C5-BDED-CA92B7CB1245" codebase="../cab/dcsclictrl.cab#VERSION=1,0,0,2609" width="24" height="15">
</OBJECT>
The cab is downloaded from same camera dlink http://xxx.xxx.xxx.xxx/dcsclictrl.cab and put in my web site
Check the classid and version from properties of dscclictrl.dll or view activex.inf file, replace in the code if necessary
My code htm...
<HTML>
<HEAD>
<TITLE>Camara id:27</TITLE>
<script language="javascript">
function StartStreaming()
{
//Connect to the camera.
//The value 0:both audio and video streaming, 1:only video streaming, 2:only audio streaming.
dcs.LiveStreamIn(1);
}
</script>
</HEAD>
<BODY>
<script language="javascript">
document.write("<OBJECT ID=\"dcs\" CLASSID=\"CLSID:721700FE-7F0E-49C5-BDED-CA92B7CB1245\" ");
document.write(" codebase=\"/dcsclictrl.cab #Version=1,0,0,2609\" ");
document.write(" style=\"WIDTH: 250; HEIGHT:200;\">");
document.write(" </OBJECT>");
//set URL
dcs.RemoteHost="192.100.110.26";
dcs.RemotePort=8090;
//set proxy to follow IE Proxy setting.
dcs.Proxy=dcs.GetIEProxy();
dcs.ProxyPort=dcs.GetIEProxyPort();
dcs.SpecifiedBypass=dcs.GetIESpecifiedBypass();
dcs.UseBypass(dcs.GetIEBypassEnable());
dcs.UseProxy(dcs.GetIEProxyEnable());
//set username and password
dcs.Username="p";
dcs.Password="p";
//Specify which profile of video acquired by the object. Typically, there are 4 profiles in a multi-profile camera.
dcs.ProfileID="1";
//Specify the stream type of the assigned profile. Possible value are: 0:MPEG4, 1:MJPG, 2:H.264.
//User should check the stream type of each profile before connect it.
dcs.SetStreamType(0);
// Start video stream
window.setTimeout('StartStreaming()', 1000);
</script>
</BODY>
</HTML>