Stream avec une DCS-950G. Solution
3 participants
Page 1 sur 1
Stream avec une DCS-950G. Solution
Bonjour,
Pour info voici un message que j'ai posté sur le forum de www.networkcamerareviews.com
Hello !
Here's the soluction.
The ip, port, user and password are default value. Change for yours.
You can uncomment or modifi some function if you need them.
example :
function start(ddns,pppoe,control,stream) you can leave only stream
or
// document.CSViewer1.AudioStart();
by
// document.CSViewer1.AudioStart();
if you want audio to be streamed.
So let's go:
In the HEAD part of the web page :
<head>
<script>
function random_cookie()
{
Random_value=Math.floor(Math.random()*1000000000000000);
document·cookie="AGID" + "=" + Random_value
CookieValue=document·cookie
start=CookieValue.indexOf("=",0)
endof=CookieValue.length
CookieValue=CookieValue.substring(start+1,endof)
if (CookieValue.length!=15)
{
random_cookie();
}
else
{
document.login_form.f_CookieValue.value=CookieValue;//get cookie
}
}
function check(flag)
{
pwd = 'guest';
name = 'guest';
document.CSViewer1.SetID(name);
document.CSViewer1.SetPwd(pwd);
document.login_form.f_LOGIN.value=document.CSViewer1.encode();
random_cookie();
// document.login_form.submit();
// return;
}
function GetCookieValue()
{
var CookieValue,startof,endof;
CookieValue=document·cookie;
startof=CookieValue.indexOf("=",0);
endof=CookieValue.length;
CookieValue=CookieValue.substring(startof+1,endof) + "f";
return CookieValue;
}
function start(ddns,pppoe,control,stream)
{
check(1);
http://document.CSViewer1.SetID('admin');
http://document.CSViewer1.SetPwd('admin');
document.CSViewer1.SetBasePortNumber(5000);
document.CSViewer1.SetStreamPortNumber(5001);
document.CSViewer1.SetHttpPortNumber(80);
document.CSViewer1.SetRemoteIP('192.168.0.20');
CookieValue=GetCookieValue();
CookieValue=CookieValue.substring(0,CookieValue.length-1);
document.CSViewer1.SetClientCookie(CookieValue);
// str = form1.version.value.substr(0,14);
document.CSViewer1.SetFirmwareVer('1.71.0104.2007');
document.CSViewer1.SetModelID('1200')
document.CSViewer1.ViewerOpen();
// document.CSViewer1.ZoomInStop();
// document.CSViewer1.AudioStart();
}
function leave()
{
document.CSViewer1.ViewerClose();
}
// function AVIPath()
// {
// var str;
// str = document.CSViewer1.GetAVIPath();
// I4.document.form.file_path.value = str;
// }
</script>
</head>
An then at the body tag:
<body>
<object> </object>
<form><input><input></form>
</body>
Ok ?
After you can personalize the web page as you need it.
This is working very fine for me thrue LAN and WAN.
For accessing from WAN just replace the IP adresses by your public IP.
And open the correct ports in you router.
Et voilà le travail !!!
Bonne chance,
Samuel Austin
Belle-Ile-en-Mer
FRANCE.
Pour info voici un message que j'ai posté sur le forum de www.networkcamerareviews.com
Hello !
Here's the soluction.
The ip, port, user and password are default value. Change for yours.
You can uncomment or modifi some function if you need them.
example :
function start(ddns,pppoe,control,stream) you can leave only stream
or
// document.CSViewer1.AudioStart();
by
// document.CSViewer1.AudioStart();
if you want audio to be streamed.
So let's go:
In the HEAD part of the web page :
<head>
<script>
function random_cookie()
{
Random_value=Math.floor(Math.random()*1000000000000000);
document·cookie="AGID" + "=" + Random_value
CookieValue=document·cookie
start=CookieValue.indexOf("=",0)
endof=CookieValue.length
CookieValue=CookieValue.substring(start+1,endof)
if (CookieValue.length!=15)
{
random_cookie();
}
else
{
document.login_form.f_CookieValue.value=CookieValue;//get cookie
}
}
function check(flag)
{
pwd = 'guest';
name = 'guest';
document.CSViewer1.SetID(name);
document.CSViewer1.SetPwd(pwd);
document.login_form.f_LOGIN.value=document.CSViewer1.encode();
random_cookie();
// document.login_form.submit();
// return;
}
function GetCookieValue()
{
var CookieValue,startof,endof;
CookieValue=document·cookie;
startof=CookieValue.indexOf("=",0);
endof=CookieValue.length;
CookieValue=CookieValue.substring(startof+1,endof) + "f";
return CookieValue;
}
function start(ddns,pppoe,control,stream)
{
check(1);
http://document.CSViewer1.SetID('admin');
http://document.CSViewer1.SetPwd('admin');
document.CSViewer1.SetBasePortNumber(5000);
document.CSViewer1.SetStreamPortNumber(5001);
document.CSViewer1.SetHttpPortNumber(80);
document.CSViewer1.SetRemoteIP('192.168.0.20');
CookieValue=GetCookieValue();
CookieValue=CookieValue.substring(0,CookieValue.length-1);
document.CSViewer1.SetClientCookie(CookieValue);
// str = form1.version.value.substr(0,14);
document.CSViewer1.SetFirmwareVer('1.71.0104.2007');
document.CSViewer1.SetModelID('1200')
document.CSViewer1.ViewerOpen();
// document.CSViewer1.ZoomInStop();
// document.CSViewer1.AudioStart();
}
function leave()
{
document.CSViewer1.ViewerClose();
}
// function AVIPath()
// {
// var str;
// str = document.CSViewer1.GetAVIPath();
// I4.document.form.file_path.value = str;
// }
</script>
</head>
An then at the body tag:
<body>
<object> </object>
<form><input><input></form>
</body>
Ok ?
After you can personalize the web page as you need it.
This is working very fine for me thrue LAN and WAN.
For accessing from WAN just replace the IP adresses by your public IP.
And open the correct ports in you router.
Et voilà le travail !!!
Bonne chance,
Samuel Austin
Belle-Ile-en-Mer
FRANCE.
Saminfo- Nombre de messages : 2
Age : 64
Localisation : France
Emploi : Artisan
Date d'inscription : 08/05/2007
Re: Stream avec une DCS-950G. Solution
Bonjour,
le script fonctionne t'il alors ? Est-il possible de le voir fonctionner ?
Merci de ta réponse
le script fonctionne t'il alors ? Est-il possible de le voir fonctionner ?
Merci de ta réponse
nawak33- Expert D-Link
- Nombre de messages : 54
Age : 39
Localisation : Bordeaux
Emploi : Tech
Loisirs : Informatique, escalade
Date d'inscription : 25/01/2007
Re: Stream avec une DCS-950G. Solution
Bonjour
ça ne fonctionne pas
si vous avez d'autres idées je suis preneur
a+
ça ne fonctionne pas
si vous avez d'autres idées je suis preneur
a+
gagcbr- Nombre de messages : 1
Age : 47
Localisation : Origné
Emploi : Commercial
Date d'inscription : 27/12/2007
Page 1 sur 1
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum