
Video monitoring
Page 75
FortiRecorder 2.4.2 Administration Guide
To allow users to access video sharing, you must first insert the video in your web page.
For example, if your FortiRecorder runs v2.3 and older firmware, you can insert the following
code in your web page:
<iframe frameborder="10" scrolling="no" width="640" height="480"
src="https://172.20.110.94/api?request=FRC_LiveView&id=FD20&width=
640&height=480&view_mode=3&hostName=172.20.110.94&username=videoSe
rvice&password=1234">
<p>iframes are not supported by your browser.</p> </iframe><br/>
Starting from v2.4, if your web browser supports HTML5, you can use the following code:
<iframe frameborder="10" scrolling="no" width="640" height="480"
src="https://172.20.110.94/api?request=FRC_LiveView&id=FD20&width=
640&height=480&view_mode=3&hostName=172.20.110.94&username=videoSe
rvice&password=1234">
<p>iframes are not supported by your browser.</p> </iframe><br/>
<script>
setInterval(function() {
var req = new XMLHttpRequest();
req.open('GET',
"https://172.20.110.94/api?request=FRC_LiveView&id=20A-b5fc&userna
me=videoService&password=1234&heartbeat=1", true);
req.send();
}, 10000);
</script>
The IP address at the beginning of the code is the IP of the FortiRecorder. The attribute ID is the
name of the camera as defined on the FRC. The attribute dimensions should match the size of
the iframe. The username and password values should match the configuration you specify
below.
Once you have entered the code into your web page, configure the FortiRecorder unit to allow
your web page to access the camera group via HTTPS.
If you want to share the video stream via RTSP, the user can use a RTSP client to access the
video at:
rtsp://<username>:<password>@<fortirecorder_ip>/camera=<id>
For example:
rtsp://videoService:[email protected]/camera=FD20
To configure video sharing on FortiRecorder
1.
Go to
Service > Video > Stream.
2.
Select the
Status
checkbox.
3.
Enter your username and password.
4.
Add the camera group you wish the user to view by selecting the group from the Camera
Group List and then selecting the right arrow button.
5.
Select the HTTPS or RTSP protocol.
6.
Select
OK
.
You can configure your FortiRecorder unit to upload images from a camera group. Using the
image service your cameras will capture a snapshot image at specified intervals. and upload the
image to a FTP site.
Similar to the shared video, you will need to upload the image to your web site. Once you have
finished that, configure image sharing in FortiRecorder.