With ZEGOCLOUD's Cloud Recording, you can start cloud recording by sending a Server API request without integrating an SDK. When you are using ZEGOCLOUD's RTC service to publish and play streams, you can call server-side APIs to easily start cloud recording and uolad record files to specified third-party storage for scenarios like playback and Video-on-Demand (VOD).
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:
Contact ZEGOCLOUD Technical Support to enable the cloud recording service.
Integrated either the ZEGOCLOUD Video Call or Voice Call SDK in your project.
Before using the cloud recording service, you need to enable a third-party cloud storage service and obtain the corresponding Region, Bucket, Access Key, and Secret Key information (required parameters vary by service, please obtain them according to your needs).
Currently supported third-party cloud storage services:
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.