Video monitoring : Video and image sharing
 
Video and image sharing
FortiRecorder supports video and image sharing on the web sites. Using FortirRecorder, administrators can configure FortiRecorder and a third-party web site to allow users to access a live feed of an established camera or an image from a camera without directly accessing FortiRecorder.
You can also stream live video from a camera directly to a configured YouTube channel. For details, see below.
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=videoService&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=videoService&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&username=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:1234@172.20.110.94/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.
To configure image sharing on FortiRecorder
1. Go to Service > Video > Image.
2. Select the Status checkbox.
3. Enter the number of seconds in the Interval section that will dictate how often the cameras capture a picture.
4. Enter the necessary FTP information.
5. 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.
6. Select OK.
To stream live video to YouTube, you must create a YouTube account. And you can only stream one camera per YouTube account.
To stream live video to YouTube
1. Go to Service > Video > YouTube.
2. Click New to create a YouTube integration task.
3. Enter a name for this task.
4. Enter a description for this task.
5. Select a camera you want to stream.
6. For Encoder Setup, enter the server URL and stream name/key. This is the information you get when you set up the YouTube account.
7. Click Create.