Embedding IP Camera Video into a Web PageThe following instructions will demonstrate how to embed a live video stream from an IP Camera (specifically a Vivotek IP-V96112 network PTZ camera ) into a web page that anyone can access. This is achieved by embedding the camera's plug-in code directly on your webpage. This concept can be applied to businesses that wish to share the live camera view with the public. For instance, pedestrian street traffic of an ocean front cafe or a nightclub's dance floor.
If you find this page useful, please bookmark and share.
First you must assign a static LAN IP address to the camera using the following steps:
1. Install the Installation Wizard from the CD to you computer, connect the camera to your network switch or router with CAT5 cable, connect the power adapter and plug it in. Then run the Installation Wizard from the shortcut created on your desktop. The wizard will scan your system and display the device(s) that are detected.
2. Select the device you wish to setup by clicking the check box.
3. Click the "Setup" button
4. Enter Hostname (or leave the default name)
5. Leave "Root password" and "Confirm password" blank*
(*This is important because Internet Explorer does not support this command within the browser)
6. Click "Next"
7. Click check box "Reset IP address at next boot"
8. Enter IP address, Subnet mask, etc. using proper Internet Protocol naming conventions
9. Click "Next"
10. Click "Apply"
11. Update progress dialog box will appear. Press "Done" when completed
12. Click "Link to selected device(s)" at bottom right of the setup screen (not pictured). This should open up the Web Page Interface with Internet Explorer as shown below:
You are now connected to the camera on your local area network.
Port Forwarding SetupIn order to access your cameras live video stream from outside of your local network and over the Internet, you must setup port forwarding for you camera. The default port that is used by this camera is 80. Please refer to the following page to setup port forwarding. If you have a router that is not on the below page, you must consult the manual for your particular model router for port forwarding.
Click here for: Port Forwarding Setup Instructions
* The above link will open a new window. Return to this page when you are done.
Access your IP camera from the InternetOnce your port forwarding is setup correctly, try to access your camera from over the Internet. This is done by opening Internet Explorer and entering the IP address of the Internet connection at the location of your camera. If you do not know what that IP address is, please click on this link from a computer on the same network that your IP camera is located:
Get my IP address.
IP Camera Web Page Embed Video CodeThe second part of this setup is adding the embed code to your web page that accesses the IP camera and requests the live video stream. Use the following script in the "<body>" section of the HTML code of your web page.
You may copy and paste the script below but you must change the IP address to the one of your Internet connection at the location of your IP camera.
Video Embedding Code
if ((navigator.appName == "Microsoft Internet Explorer")&&(navigator.platform != "MacPPC"))
document.write("<OBJECT ID=\"VAtCtrl\" WIDTH=362 HEIGHT=310 name=\"VAtCtrl\"");
document.write("<PARAM NAME=\"Url\" VALUE=\"http://184.108.40.206:1025/cgi-bin/control.cgi\">");
document.write("<PARAM NAME=\"VSize\" VALUE=\"SIF\">");
document.write("<PARAM NAME=\"Language\" VALUE=\"en\">");
document.write("<PARAM NAME=\"Deblocking\" VALUE=\"true\">");
document.write("<PARAM NAME=\"DisplayTimeFormat\" VALUE=\"1\">");
document.write("<PARAM NAME=\"DigitalZoomEnableChk\" VALUE=\"true\">");
document.write("<PARAM NAME=\"DigitalZoomEdit\" VALUE=\"true\">");
Change this to the IP address of your Internet connection. You can also test with the IP address of the camera that was assigned in step 8 above, but this IP address will only work on the local network where the camera is located.
You may also accomplish this in a similar manner by using an "<iframe>" tag in your HTML code.
*NOTE: The iframe will include the entire Web Page Interface. Therefore you may want to restrict access to this page as anyone will now be able to use the camera's PTZ controls and gain access to the IP configuration settings.
Here's the code (remember to remove the quotation marks):
"<iframe src ="http://192.168.1.44/default.asp" width="100%" height="300">
<p>Your browser does not support iframes.</p>
Change this to
the IP address of your Internet connection. You can also test with the
IP address of the camera that was assigned in step 8 above, but this IP
address will only work on the local network where the camera is located.
We hope these instructions have helped you to set up an embedded live video stream from an IP security camera on your web page.
If you need additional help or want advice on an IP camera surveillance system that's right for you,
please call us at 888-849-2288 today.