This chapter takes Cam2web as an example to show how Webcam component works.
Prerequisite
Connect and start your IP web camera.
Download Cam2web and install it on your PC.
|
Note
Follow the license terms when using cam2web. |
Get the image address
Open cam2web.exe.
Set the port under File -> Setting.
|
Note
The port you entered must not be occupied by other application. |
Select the USB camera from the Camera drop-down list and click the Start streaming button.
In this example, "HP HD Camera" is the camera USB camera connected to the laptop.
Click Streaming on port ... to view the live page.
Right-click the image and select Copy image address.
Set the Webcam Animation and view the video in the web project
Create a Webcam component in your web project.
Click "..." at the right end of the row Http live stream address.
In the Webcam-Http Live Stream Address window, paste the image address.
Click the down arrow at the right end of the row Live Stream Video Type and select MJPEG.