network camera IP Camera
Your IP Network Camera Source
Home IP Cameras Reviews Forums IP Camera Software IP Camera Comparison Tools and Support Contact Us

Site Search

IP Network Camera

Your IP Network Camera and Video Server Source

- IP Camera and Video Server Reviews
- Discussion Forums
- Tools and Support
- Industry News and Articles
- Complete Product and Software Listings


We are your IP Network Cameras and Video Server Source

Featured IP Camera

Latest IP Camera Reviews

Vivotek IP3133 Camera
TRENDnet TV-IP100 Camera
D-Link DCS-950G IP Camera
IK-WB11A Network Camera
Linksys WVC200 PTZ IP Camera

Our Newsletter

IP Camera Help Center

Information:
IP Camera Forum
Manufacturers
IP Camera Software
Integrators & Solution Providers
Glossary of Terms
Camera Comparison
Camera Demos
View Articles
Press Releases
Tools and Support
Where to Buy

Other Resources:

Website Help

About Us
Media Kit
Contact Us
RSS Feed
Site Map
Industry Links
Link Directory





 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DCS-950G Streaming


 
Post new topic   Reply to topic    IP Camera Forum Forum Index -> General Discussion
Author Message
seanhall
New Member


Joined: 25 Apr 2007
Posts: 1

PostPosted: Wed Apr 25, 2007 5:28 pm    Post subject: DCS-950G Streaming Reply with quote

Hello everyone, I am desperate, I hope someone has an answer.
I've been searching for days for documentation on how to access to this camera AV stream but there is nothing around.
I tried going over the build in pages but I must be missing something because all I'm getting is a black square.
Has anyone been able to access to the AV stream through the web with the CSViewer dll?
If so please help me because setting up all of these didn't help at all...

document.CSViewer1.SetID('XXX');
document.CSViewer1.SetPwd('XXX');
document.CSViewer1.SetRemoteIP('xxx.xxx.xxx.xxx');
document.CSViewer1.SetBasePortNumber('5000');
document.CSViewer1.SetStreamPortNumber('5001');
document.CSViewer1.SetHttpPortNumber('80');
document.CSViewer1.SetFirmwareVer("1.07");
document.CSViewer1.SetModelID('1200');
document.CSViewer1.ViewerOpen();

and this in the body

<object classid='clsid:EFFDEEEC-F9E1-4461-91D2-DAEB8CC595F1' id='CSViewer1' codebase='http://XXX.XXX.XXX.XXX:80/CSViewer.cab#version=2,11,918,2006' width='320' height='240'>
</object>

NOT WORKING!

how do I do it?

:( :( :( :( :( :(
Back to top
View user's profile Send private message
fcysam
New Member


Joined: 09 May 2007
Posts: 1

PostPosted: Wed May 09, 2007 8:08 am    Post subject: Re: DCS-950G Streaming Reply with quote

Hello !

seanhall wrote:
Hello everyone, I am desperate, I hope someone has an answer.


Yes I do !!! After a few hour here is the solution, working with IE6 and 7.


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 language="JavaScript">
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);




//document.CSViewer1.SetID('admin');
//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 style="background-color: rgb(198, 203, 207);" leftmargin="0"
topmargin="0" onload="javascript:start();"
onunload="javascript:leave();">

<br>
<object classid="clsid:EFFDEEEC-F9E1-4461-91D2-DAEB8CC595F1"
id="CSViewer1"
codebase="http://192.168.0.20:80/CSViewer.cab#version=2,13,1219,2006"
height="240" width="320"> </object>
<form method="post" action="/goform/formLogin" target="_top"
name="login_form"><input name="f_CookieValue" size="23" type="hidden"><input
name="f_LOGIN" size="34" type="hidden"></form>

<br>
<br>

</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.
Back to top
View user's profile Send private message
konyberg
Member


Joined: 01 Mar 2007
Posts: 20

PostPosted: Wed May 09, 2007 6:38 pm    Post subject: DCS-950G streaming Reply with quote

Hi.
I have also been fighting wit this issue.
Many thanks for your script. It works! Very Happy

Karl-Olav Nyberg
Back to top
View user's profile Send private message
splash
New Member


Joined: 14 May 2007
Posts: 6

PostPosted: Mon May 14, 2007 2:57 pm    Post subject: Re: DCS-950G Streaming Reply with quote

fcysam wrote:
Hello !

seanhall wrote:
Hello everyone, I am desperate, I hope someone has an answer.


Yes I do !!! After a few hour here is the solution, working with IE6 and 7.


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 language="JavaScript">
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);




//document.CSViewer1.SetID('admin');
//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 style="background-color: rgb(198, 203, 207);" leftmargin="0"
topmargin="0" onload="javascript:start();"
onunload="javascript:leave();">

<br>
<object classid="clsid:EFFDEEEC-F9E1-4461-91D2-DAEB8CC595F1"
id="CSViewer1"
codebase="http://192.168.0.20:80/CSViewer.cab#version=2,13,1219,2006"
height="240" width="320"> </object>
<form method="post" action="/goform/formLogin" target="_top"
name="login_form"><input name="f_CookieValue" size="23" type="hidden"><input
name="f_LOGIN" size="34" type="hidden"></form>

<br>
<br>

</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.


I done this and works fine... but sometimes i lost video and see all black, can someone help me?Sometimes I hear audio but no video... why?Any tips?
Back to top
View user's profile Send private message
IvanS
New Member


Joined: 23 Jan 2008
Posts: 2

PostPosted: Wed Jan 23, 2008 5:49 am    Post subject: DCS-950G streaming Reply with quote

But I do not hear the sound... Can anybody help!?
And sometimes lost video too...
Back to top
View user's profile Send private message
splash
New Member


Joined: 14 May 2007
Posts: 6

PostPosted: Sat Feb 02, 2008 7:27 am    Post subject: Reply with quote

Did you uncomment " // document.CSViewer1.AudioStart(); " in the start function?
I mean change "// document.CSViewer1.AudioStart(); " in "document.CSViewer1.AudioStart(); "....

I hope it works now!
Back to top
View user's profile Send private message
IvanS
New Member


Joined: 23 Jan 2008
Posts: 2

PostPosted: Thu Feb 21, 2008 8:08 am    Post subject: Reply with quote

splash wrote:
Did you uncomment " // document.CSViewer1.AudioStart(); " in the start function?
I mean change "// document.CSViewer1.AudioStart(); " in "document.CSViewer1.AudioStart(); "....

I hope it works now!


of course uncommented...
still no sound...
Back to top
View user's profile Send private message
zoug
New Member


Joined: 04 Mar 2008
Posts: 1

PostPosted: Tue Mar 04, 2008 6:19 am    Post subject: Re: DCS-950G streaming Reply with quote

IvanS wrote:
But I do not hear the sound... Can anybody help!?
And sometimes lost video too...


have 8 cam and did a custom page to switch between cams, definitely lost the video too after 2 or 3 cam switch, any hint about this issue ?
Back to top
View user's profile Send private message
Keithm
New Member


Joined: 04 Apr 2008
Posts: 2

PostPosted: Fri Apr 04, 2008 8:42 pm    Post subject: Reply with quote

I have the 950g and talked with Dlink about the streaming video, could someone look at the code, and see what I have been wrong in using, Thank you for your time and Patience.









charset=ISO-8859-1">

generator" content="WYSIWYG Web Builder - http://www.wysiwygwebbuilder.com">

bgcolor="#FFFFFF" text="#000000">
color: rgb(198, 203, 207);" leftmargin="0"
topmargin="0" onload=" javascript:start();"
onunload=" javascript:leave();">

< br>
classid=" clsid:EFFDEEEC-F9E1-4461-91D2-DAEB8CC595F1"
id="CSViewer1"
codebase="http://10.0.0.139:80/CSViewer. cab#version=2,13,1219,2006"
height="240" width="320">

goform/formLogin" target="_top"
name="login_form"> name="f_LOGIN" size="34" type="hidden">


< br>
< br>
Back to top
View user's profile Send private message
Keithm
New Member


Joined: 04 Apr 2008
Posts: 2

PostPosted: Fri Apr 04, 2008 8:43 pm    Post subject: Reply with quote

///
<head>

<script language="JavaScript">
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(guest);
document.CSViewer1.SetPwd(guest);
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(stream)
{



check(1);




document.CSViewer1.SetID('admin');
document.CSViewer1.SetPwd('admin');

document.CSViewer1.SetBasePortNumber(5001);
document.CSViewer1.SetStreamPortNumber(5100);
document.CSViewer1.SetHttpPortNumber(80);
document.CSViewer1.SetRemoteIP('10.0.0.139');

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>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Untitled Page</title>
<meta name="generator" content="WYSIWYG Web Builder - http://www.wysiwygwebbuilder.com">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<body style="background-color: rgb(198, 203, 207);" leftmargin="0"
topmargin="0" onload="javascript:start();"
onunload="javascript:leave();">

<br>
<object classid="clsid:EFFDEEEC-F9E1-4461-91D2-DAEB8CC595F1"
id="CSViewer1"
codebase="http://10.0.0.139:80/CSViewer.cab#version=2,13,1219,2006"
height="240" width="320"> </object>
<form method="post" action="/goform/formLogin" target="_top"
name="login_form"><input name="f_CookieValue" size="23" type="hidden"><input
name="f_LOGIN" size="34" type="hidden"></form>

<br>
<br>

</body>

</body>
</html>
//
Back to top
View user's profile Send private message
oschreiber
New Member


Joined: 03 Jul 2008
Posts: 3
Location: Los Angeles

PostPosted: Thu Jul 03, 2008 2:27 am    Post subject: Re: DCS-950G streaming Reply with quote

konyberg wrote:
Hi.
I have also been fighting wit this issue.
Many thanks for your script. It works! Very Happy

Karl-Olav Nyberg



Would any body know how to stream the MPEG from the video port of a DCS-G900 (port 80)
Thanks!
Back to top
View user's profile Send private message
rtchewning
New Member


Joined: 11 Jul 2008
Posts: 1

PostPosted: Fri Jul 11, 2008 11:46 am    Post subject: Reply with quote

Great Job on the code!!! It works great... But I have a question. I have used this to add this camera to my network of cameras with which I have designed a personal website to view all my cams in my house. In the HTML code of my site I use inline frames and one of them is my "Menu" which basically has numbers 1 - 30 to click on to display that current camera in another inline frame titled "webcam" (all HTML nothing fancy) and that will display that cam in the inline frame "webcam" and works fine for what I'm trying to accomplish which is a small footprint to view all cams with a simple navigation.

When I added this cam (new and seperate webpage using this code) it breaks my menu in that if I click on cam "23" which happens to be the 950G camera with this code it will load the page in the "webcam" inline frame and display fine BUT when I go to switch to another cam it now begins opening a "new" window with the cam versus displaying it in the inline frame "webcam"

Of course I have to add these lines to get the camera (code) to start but this seems to be where it breaks my "menu" or it could be once it starts the code something else is doing it ...

onload="javascript:start();"
onunload="javascript:leave();">

any ideas would be appreciated.

Thank you.
Back to top
View user's profile Send private message
thaslider
New Member


Joined: 02 Sep 2008
Posts: 2
Location: Germany

PostPosted: Tue Sep 02, 2008 2:36 pm    Post subject: Reply with quote

I have the same problem like "rtchewning" wrote in his post.
I use a frameset (navigation, top, main). The webcam is displayed in the main window. The homepage works fine till I visit the site with the webcam.
But if I klick a link (navigation) the site doesnt open in the main frame but a new window opens. The only way to fix the problem is to close the IE and start again.
The cause is the onload / onunload command.

edit: It could be that the onunload command doesnt work, because this command is according to the webcam-server and the rest of the homepage is located on an other server.

Ideas are welcome!

Regards from Germany
Back to top
View user's profile Send private message
kairno1
New Member


Joined: 27 Oct 2008
Posts: 1

PostPosted: Mon Oct 27, 2008 9:58 am    Post subject: Reply with quote

Keithm wrote:
///
<head>

<script language="JavaScript">
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(guest);
document.CSViewer1.SetPwd(guest);
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(stream)
{



check(1);




document.CSViewer1.SetID('admin');
document.CSViewer1.SetPwd('admin');

document.CSViewer1.SetBasePortNumber(5001);
document.CSViewer1.SetStreamPortNumber(5100);
document.CSViewer1.SetHttpPortNumber(80);
document.CSViewer1.SetRemoteIP('10.0.0.139');

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>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Untitled Page</title>
<meta name="generator" content="WYSIWYG Web Builder - http://www.wysiwygwebbuilder.com">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<body style="background-color: rgb(198, 203, 207);" leftmargin="0"
topmargin="0" onload="javascript:start();"
onunload="javascript:leave();">

<br>
<object classid="clsid:EFFDEEEC-F9E1-4461-91D2-DAEB8CC595F1"
id="CSViewer1"
codebase="http://10.0.0.139:80/CSViewer.cab#version=2,13,1219,2006"
height="240" width="320"> </object>
<form method="post" action="/goform/formLogin" target="_top"
name="login_form"><input name="f_CookieValue" size="23" type="hidden"><input
name="f_LOGIN" size="34" type="hidden"></form>

<br>
<br>

</body>

</body>
</html>
//


if i use this code {changing the ip addr, and the username/password} i get this error :
Error: guest is not defined
Source File: http://192.168.31.217/dsc_cam/
Line: 45

Error: document.CSViewer1.ViewerClose is not a function
Source File: http://192.168.31.217/dsc_cam/
Line: 96

{the ip is on a local server, so it's not accesible on the internet}

any ideas ?

edit :
tried with :
function check(flag)
{
pwd = 'xxx';
name = 'yyy';
document.CSViewer1.SetID(name);
document.CSViewer1.SetPwd(pwd);
document.login_form.f_LOGIN.value=document.CSViewer1.encode();
random_cookie();
}

end the error was :
Error: document.CSViewer1.SetID is not a function
Source File: http://192.168.31.217/dsc_cam/
Line: 44
...

the firmware version is 1.08 if it matters...
Back to top
View user's profile Send private message
chjonss
New Member


Joined: 15 Dec 2008
Posts: 1

PostPosted: Mon Dec 15, 2008 11:14 am    Post subject: Reply with quote

I've just managed to get my DCS950G working with this code.
Is it in anyway possible to get it to work with Firefox and Mac?

If the answer is no, can you please help me find a new camera that supports this ?

The only thing I want to do is: stream the webcam feed on a homepage and be able to look at it in IE. firefox and on Mac. (Not via the admin-interface)
The cam must have WLAN connection.

/Christoffer
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IP Camera Forum Forum Index -> General Discussion All times are GMT - 4 Hours
Page 1 of 1