All Products
Search
Document Center

:Automatic recording

Last Updated:Sep 15, 2023

LinkVisual allows you to use the automatic recording feature to automatically trigger IP cameras to record videos.

Prerequisites

Background information

If you want to develop an application to enable automatic recording, run the corresponding command on the application to trigger IoT Platform to call an API operation. For more information about API operations, see Cloud-side development.

Device-side development

  • If a video device is connected to LE-V, you do not need to develop the device.

  • If an IP camera is connected to IoT Platform, perform the following steps to configure the device: Integrate LinkVisual SDK for Linux. Then, follow the steps that are provided in the Live streaming and video storage in the cloud topic to enable automatic recording.

Cloud-side development

You can call the TriggerRecord operation to trigger an IP camera to immediately start recording and upload video files to IoT Platform.

Note
  • Video instances do not support the time-lapse recording feature. You can write code to record a time-lapse video.

  • The RecordDuration request parameter specifies the total duration of all video files. The total duration includes the prerecording duration that is specified by the PreRecordDuration parameter. For example, if the prerecording duration of a video is 5 seconds and the recording duration is 30 seconds, the total duration of the video file that is generated based on the video is 30 seconds.

  • Specific devices do not support the prerecording feature. If an IP camera does not support the prerecording feature, the prerecording duration of each video is 0. The total duration of a video file is equal to the recording duration of the video based on which the video file is generated.

  • The maximum duration of a video file is 30 minutes. If the recording duration of a video exceeds 30 minutes, multiple video files are generated based on the video.

What to do next

Follow the instructions in the Video playback on the cloud topic to play video files that are generated by using the automatic recording feature.