This topic describes how to configure cloud recording rules.
Procedure
Log on to the Real-Time Communication (RTC) console.
In the navigation pane on the left, choose .
Select the AppID to configure.
Create a cloud recording template.
Optional: Turn on the Cloud Recording Service switch.
NoteThe Cloud Recording Service is disabled by default. To use the recording feature, you must enable the service in the console.
You can create and edit recording rules only if the Cloud Recording Service is enabled.
Disabling the Cloud Recording Service in the console does not affect ongoing recording tasks. After these tasks stop, the recording feature becomes unavailable.
Click Create Template.
Configure the template parameters.
Parameter
Description
Template Name
The name of the template. The name must be 1 to 128 characters in length and can contain Chinese characters, uppercase letters, lowercase letters, digits, underscores (_), and hyphens (-).
Recording Format
The recording format. Supported formats include m3u8, flv, and mp4.
Storage Rule
The storage rule for recording files. The rule is record/{AppId}/{ChannelId_TaskId}/{EscapedStartTime}_{EscapedEndTime}.
Stream Mixing Layout
The stream mixing layout. For more information, see Stream mixing layouts.
Encoding Options
The encoding options. For more information, see MediaEncode enumeration.
Click Submit to create a cloud recording template.
View the cloud recording template.
You can click Details, Edit, or Delete in the Actions column of the template list to manage a specific cloud recording template.
NoteYou can manually start a recording task using the Cloud Recording Task API.