Create an ARTC application

更新时间:
复制 MD 格式

Activate ApsaraVideo Live and create an ARTC application to obtain the AppId and AppKey required for API calls.

Prerequisites

An Alibaba Cloud account is created and identity verification is complete. To create an Alibaba Cloud account, visit the Alibaba Cloud official website. For more information, see Create an Alibaba Cloud account. For information about identity verification, see Individual identity verification or Enterprise identity verification.

Activate service

  1. Log in to the ApsaraVideo Live console. The activation page appears.

  2. Click Activate to go to the ApsaraVideo Live purchase page.

    This page compares Standard live streaming and Real-Time Streaming (RTS). Standard live streaming has a latency of ≥3s, supports the RTMP, HLS, and FLV protocols, and is enabled by default after activation. Real-Time Streaming (RTS) has a latency of ≤1s, supports the ARTC (WebRTC) protocol, and requires you to add and configure a streaming domain after you activate ApsaraVideo Live.

  3. On the ApsaraVideo Live purchase page, select a billing method: pay-by-data-transfer or pay-by-peak-bandwidth. For more information, see Standard live streaming pricing.

  4. Read and agree to the Terms of Service and Service Level Agreement, then click Activate Now to finish the activation.

Create an application

  1. In the ApsaraVideo Live console, navigate to ApsaraVideo Live > Live+ > ApsaraVideo Real-time Communication > Application Management, and click Create Application.

  2. Enter an instance name (which can include both Chinese and English characters), select the Terms of Service checkbox, and click Buy Now.

    Note

    Creating an application is free. You are charged based on actual usage. For billing details, see ARTC billing.

    Set Service Type to ApsaraVideo Real-time Communication and Billing Method to Pay-By-Duration.

  3. After the success message, return to the Applications page and refresh to view your ARTC application.

    The application is displayed with an Enabled status. You can perform the following actions: Manage, usage query, quality tracking, disable, and delete.

Get development parameters

Click Manage next to the application to view the AppId and AppKey, which are required for API calls such as joining a channel.

On the Basic Information tab, find the Application ID and AppKey. Click the copy icon next to each value to copy it.

Token

A token is a signature-based credential that prevents unauthorized access to your Alibaba Cloud services.

During development, you can generate tokens on the client side without a token server. Before you release your application, deploy a dedicated token server. For more information, see token-based authentication.