All Products
Search
Document Center

ApsaraVideo Live:Configure OSS

Last Updated:Apr 03, 2025

To store live stream recordings to Object Storage Service (OSS) for future download and playback, you must create an OSS bucket and grant ApsaraVideo Live the permissions to write data to OSS. This topic shows how to do so.

Create an OSS bucket

The OSS bucket used to store the live stream recordings must reside in the same region where the live center of the live stream domain is located.

After creating a bucket, you can create directories to better manage the recordings.

For detailed procedure, see Create a bucket.

Grant the write permissions on OSS to ApsaraVideo Live

Activating ApsaraVideo Live automatically grants it permissions to write data to OSS.

If the permissions are deleted by accident, perform the following steps to assign the AliyunMTSDefaultRole role again:

  1. To authorize ApsaraVideo Live to access OSS, click Authorize on the RAM Quick Authorization page.

  2. Check whether the authorization is successful.

    Account type

    Method

    Alibaba Cloud account

    1. Log on to the Alibaba Cloud official website by using your Alibaba Cloud account and go to the RAM console.

    2. In the left-side navigation pane, choose Identities > Roles.

    3. Search for and click the AliyunMTSDefaultRole role to view the permissions.

    RAM user

    1. Use your Alibaba Cloud account to attach the AliyunRAMReadOnlyAccess policy to a RAM user.

    2. Log on to the RAM console as the RAM user.

    3. In the left-side navigation pane, choose Identities > Roles.

    4. Search for and click the AliyunMTSDefaultRole role to view the permissions.

Note

You can create a RAM role to issue a Security Token Service (STS) token that is valid for a temporary period. This is a more secure method to grant access permissions.

Configure an accelerated domain name

You can configure an accelerated domain name for the OSS bucket to accelerate content delivery. Alibaba Cloud CDN distributes the recorded videos in OSS to points of presence (POPs) deployed around the world. Users can access files from the nearest POPs instead of the OSS bucket. This improves the access speed and reduces costs because the fees for CDN Internet traffic are only 50% of the fees for OSS Internet traffic.

For detailed procedure, see Access acceleration by using Alibaba Cloud CDN.

Note
  • If you use the OSS bucket only to store recordings, you do not need to configure an accelerated domain name.

  • The domain name for CDN must be different from the domain name used for ApsaraVideo Live.