All Products
Search
Document Center

:Continuous recording

Last Updated:Jul 27, 2023

Video instances allow you to configure IP cameras to continuously record video during a specified period of time. This topic describes how to configure the continuous recording feature.

Prerequisites

An IoT Platform instance of the video type is purchased, and a video device is connected to IoT Platform. For more information, see Device Connection.

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 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 the continuous recording feature.

Cloud-side development

  1. You can call the CreateTimeTemplate operation to configure a time template.

    If the call is successful, an ID is generated for the time template. The measurement unit of time templates is weeks. You can specify the period of time in which you want to record videos each week. The time is accurate to seconds.

  2. You can call the CreateRecordPlan operation to create a recording plan based on the time template that is generated in Step 1.

  3. You can call the AddRecordPlanDevice operation to add the recording plan to the IP camera.

    If the recording plan is added to the IP camera, the IP camera records videos and uploads video files to IoT Platform based on the recording plan when the IP camera is connected to IoT Platform.

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 continuous recording feature.