Streaming your webcam

burton_o61

Daemon Poster
Messages
968
We are trying to broadcast our webcam over a server using html. This is a class assignment, and im having a hard time getting it to work. Any help would be great.
 
You can get a piece of software that takes pictures using your webcam at certain intervals. Then when the pics are taken they are automatically uploaded to the sites FTP. Go have a look around Google.
 
i could be incorrect, but i think their are "ip cameras" that you can hook up, and they have their own ip address that you can go to from any browser anywhere, and watch what is being seen by the camera...like in real time. maybe someone else knows more about these, and can provide more info.
 
Yeah - I have got one :). They cost around £100 ($180), and are well worth it. The one i have got can be hooked up to a router via ethernet, or WiFi. Its a LinkSys WVC54G. It streams via either an ActiveX Component in your browser, or via JPEG. All i need to do now, is configure it for Web access.... Hmm.. I think i will start a thread :)
 
Yea, there is a much easier way of doing it. I actually figured out the problem. Thanks anyways though.

Edit: Also much cheaper.
 
Other than the code below. You will need a webcam, a single static ip, and Media Encoder
The ip address and port below are found in windows media encoder when you are broadcasting.

Code:
<html>
<head>
<script language="VBScript">
<!--
On error resume next
Player.URL = "[B][SIZE=2]http://165.234.175.71:1121[/SIZE][/B]"
if err then msgbox "You need Windows Media Player 7. Go to" & chr(13) &_
"http://www.microsoft.com/windowsmedia"
err.clear
-->
</script>
</head>

<body>
</script>

<p>
<object id="Player" width="340" height="300"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="URL" value="[B][SIZE=2]http://165.234.175.71:1121[/SIZE][/B]">
<param name="uiMode" value="none">
</object>


</p>
<p> 
<input type="BUTTON" name="BtnPlay2" value="Play" onClick="StartMeUp()">
<input type="BUTTON" name="BtnStop2" value="Stop" onClick="ShutMeDown()">
</p>


<script>
<!--
function StartMeUp ()
{
Player.controls.play();
}

function ShutMeDown ()
{
Player.controls.stop();
}
-->
</script>


<script>
<!--- BEGIN PLAYER --->
<!-- webbot bot="HTMLMarkup" startspan ---->
<object ID="MediaPlayer" WIDTH="340" HEIGHT="300" CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">

<param name="autoStart" value="True">
<param name="filename" value="[B][SIZE=2]http://165.234.175.71:1121[/SIZE][/B]">
<param NAME="ShowControls" VALUE="False">
<param NAME="ShowStatusBar" VALUE="False">
<embed TYPE="application/x-mplayer2" SRC="[B][SIZE=2]165.234.175.71:1121[/SIZE][/B]" NAME="MediaPlayer" WIDTH="320" HEIGHT="270" autostart="1" showcontrols="0"></embed></object>
<!-- webbot bot="HTMLMarkup" endspan ---->
<!--- end PLAYER --->
</script>
</body>
</html>
 
Back
Top Bottom