ApsaraVideo Live supports the recording feature. You can specify a time range to record live streams and store recordings in ApsaraVideo VOD or the specified Object Storage Service (OSS) bucket. This topic describes how to view and delete recordings in the ApsaraVideo Live console.

View recordings

  1. Log on to the ApsaraVideo Live console.
  2. In the left-side navigation pane, choose Recordings.
  3. Select the domain name for which you want to view recordings.
  4. Click the OSS tab to view recordings stored in OSS buckets. Click the VOD tab to view recordings stored in ApsaraVideo VOD.
    001
    Note If ApsaraVideo VOD is activated in the region of the domain name and you have stored recordings in ApsaraVideo VOD or an OSS bucket, the VOD and OSS tabs are displayed. For more information, see Store live recordings in ApsaraVideo VOD and Store live recordings in OSS.
  5. Optional. Create an index file.
    1. Click Edit Index File.
    2. Select the domain name for which you want to create an index file, specify the start and end time of the recording, and enter an application name and a stream name.
    3. Specify the start and end time of the index file.
    4. Click Save As.
    5. Enter a name for the index file.
    6. Click OK.
    7. View the index file on the Recording Management page.
  6. Specify the time range in which you want to query recordings and enter the application name and stream name. Alternatively, you can select the application name and stream name from the drop-down lists.
  7. Click Search to view the recordings generated within the specified time range. If no recordings are displayed, check whether the access control list (ACL) of the OSS bucket in which the recordings are stored is set to Public Read. For more information, see Configure the bucket ACL.
  8. Click View Recordings in the Actions column to view the recording.

Delete recordings

Notice In the ApsaraVideo Live console, you can delete only recordings stored in OSS buckets.

Create and authorize a RAM role

Before you delete recordings in the ApsaraVideo Live console, perform the following operations to create a RAM role and grant permissions to the RAM role.

  1. Use your Alibaba Cloud account to log on to the RAM console.
  2. In the left-side navigation pane, choose Identities > Roles.
  3. On the Roles page, click Create Role.
  4. In the Select Role Type step, select Alibaba Cloud Service in the Select Trusted Entity section and click Next.
  5. In the Configure Role step, configure the following parameters:
    • Set Role Type to Normal Service Role.
    • Enter AliyunMTSVideoLifecycleRole in the RAM Role Name field.
    • Enter content in the Note field based on your needs. This parameter is optional.
    • Select Media Transcoding Service from the Select Trusted Service drop-down list.
    Click OK.
  6. In the Finish step, a message indicating that the role is created appears. Click Add Permissions to RAM role.
  7. In the Add Permissions panel, configure the following parameters:
    • Select System Policy in the Select Policy section.
    • Enter AliyunMTSVideoLifecycleRolePolicy in the policy name field.
    Click OK.

Delete a recording

  1. Log on to the ApsaraVideo Live console.
  2. In the left-side navigation pane, choose Streaming Management > Recordings.
  3. Select the domain name for which you want to delete recordings.
  4. Click the OSS tab, find the recording that you want to delete, and click Delete in the Actions column.
    Delete a recording
  5. Click OK.
    By default, the Also delete the recording file stored in OSS option is not selected. If you select this option, the recordings stored in the OSS bucket are deleted when you delete the recording history in the ApsaraVideo Live console. Confirm deletion

Configure the bucket ACL

  1. Log on to the OSS console.
  2. On the Buckets page, click the name of the OSS bucket that you want to manage. For more information about the name of the OSS bucket, see Store live recordings in OSS.
  3. In the left-side navigation pane, choose Access Control > Access Control List (ACL).
  4. In the Bucket ACL section, click Configure and select Public Read.
  5. Click Save.