Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Video stream to http page
#1
Hey Rob  K05103  yes i now you are busy K05163  bout is it pos to make something on the webpage to put a video stream on the page ? K05118
Reply to top
#2
Hi Martin, I've been playing around with my Foscam and got it working on the webpage. Apparently this code will wok on any camera so give it a try. Unfortunately some info needs to be in the html code so you and everyone will have to edit the file to get it working. 

Open the "index.html" file on controller SD card with a file editor. Scroll to the bottom of the code and you'll see the following.

Code:
<p><a href="page2.htm">Controller Info</a></p>
</body>
</html>

Just above that code paste in the code below.

In this code find YOUR_IP_ADDRESS and change it to the IP address from your internet provider. Google "my IP address" to get it. 

Find YOUR_PORT_NUMBER and replace it with the port the camera uses.

Find USERNAME and replace it with the login username for your camera.

Find PASSWORD and replace it with the password for your camera.

Code:
<center>
<img style="max-width:800px" width="100%" src="http://YOUR_IP_ADDRESS:YOUR_PORT_NUMBER/CGIProxy.fcgi?cmd=snapPicture2&usr=USERNAME&pwd=PASSWORD&t=" onload='setTimeout(function() {src = src.substring(0, (src.lastIndexOf("t=")+2))+(new Date()).getTime()}, 1000)' onerror='setTimeout(function() {src = src.substring(0, (src.lastIndexOf("t=")+2))+(new Date()).getTime()}, 5000)' alt='' />
</center>

This will only work if you have your camera port forward so you can access outside the network. If you only want to access within the network change YOUR_IP_ADDRESS to your local IP address.

Hope it works for you. :)
Reply to top
#3
sounds like fun I will have to give it a try soon.....
Reply to top


Possibly Related Threads…
Thread Author Replies Views Last Post
  Controller Info Page aquaalgae 3 5,056 08-22-2018, 06:06 PM
Last Post: Rob F
  Video - Data Logging / Graphs Rob F 0 3,738 06-23-2016, 03:10 PM
Last Post: Rob F
  Video - ATO system (automatic top off) Rob F 0 3,614 06-23-2016, 03:07 PM
Last Post: Rob F
  Video - Home Page Explained Rob F 0 3,786 06-23-2016, 03:05 PM
Last Post: Rob F

Forum Jump:

Current time: 05-02-2024, 05:33 AM