Recording rules

更新时间:
复制 MD 格式

This topic describes how to configure cloud recording rules.

Procedure

  1. Log on to the Real-Time Communication (RTC) console.

  2. In the navigation pane on the left, choose Configuration Management > Recording Rules.

  3. Select the AppID to configure.

  4. Create a cloud recording template.

    1. Optional: Turn on the Cloud Recording Service switch.

      Note
      • The 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.

    2. Click Create Template.

    3. 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.

    4. Click Submit to create a cloud recording template.

  5. 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.

    Note

    You can manually start a recording task using the Cloud Recording Task API.