With ZEGOCLOUD's Cloud Recording, you can start cloud recording by sending a Server API request without integrating an SDK.
This document describes how to start cloud recording, query cloud recording status, stop cloud recording, and more by sending a simple Server API request.
The following diagram shows the complete process of implementing a cloud recording:
Before you begin, make sure you complete the following:
Cloud Recording is not enabled by default, you will need to contact ZEGOCLOUD Technical Support to enable it first.
To start cloud recording, use the StartRecord
method to get the room ID to join a specific room.
After calling this method successfully, you can get the taskID (UID) from the response body.
And you will need to use this taskID as a request parameter for the subsequent requests. For details, see Accessing Server APIs.
During recording, call the DescribeRecordStatus
method multiple times. After calling this method successfully, you can get the current recording status and the address to be uploaded from the response body.
To update the layout of the mixed streams during video recording, call the UpdateLayout
method multiple times. For more details, see Set stream mixing layout.
To update the Whiteboard ID during recording, call the UpdateWhiteboard
method multiple times. For more details, see Whiteboard Recording.
To stop the cloud recording, call the StopRecord
method.
After the cloud recording task is completed, the recording files will be uploaded to the pre-designated third-party cloud storage.
To check the uploading details, call the DescribeRecordStatus
method.
FileUrl
: Returns the URL of the recorded files to be uploaded.Status
: Returns the uploading status of the recorded files.VideoId
: Vod returns the VideoId
of the recorded files.After uploading the recording files, the cloud recording sends a callback to the callback URL that is specified when activating the service.
The recording file name contains information such as StreamId, timestamp of start recording. For more details, refer to the OutputFileRule
parameter of the StartRecord
method.