All Products
Search
Document Center

Apsara Video SDK:Getting Started

Last Updated:Feb 19, 2025

This topic describes how to get started with ApsaraVideo MediaBox SDK.

Step 1: Understand the features of ApsaraVideo MediaBox SDK

ApsaraVideo MediaBox SDK provides the following services: stream ingest, co-streaming, short video, player, and retouching. The following table describes the features of ApsaraVideo MediaBox SDK and its sub-service SDKs. ️✔️ indicates that the feature is supported and ❌ indicates that the feature is not supported. For more information, see Functions and features.

Feature

Full-feature Edition

Player SDK

Push SDK

Short video SDK

Queen SDK

Live streaming initiation by streamer

️️️️️️✔️

️️️️️✔️

  • Streamer-viewer co-streaming

  • Streamer challenge

️️️️️️✔️

️️️️️️✔️

Video recording

️️️️️️✔️

️️️️️️✔️

Video editing

️️️️️️✔️

️️️️️️✔️

Video upload

️️️️️️✔️

️️️️️️✔️

Live stream playback

️️️️️️✔️

️️️️️️✔️

VOD playback

️️️️️️✔️

️️️️️️✔️

Retouching

️️️️️️✔️

️️️️️️✔️

Gesture recognition

️️️️️️✔️

️️️️️️✔️

Intelligent image matting

️️️️️️✔️

️️️️️️✔️

Step 2: (Optional) Use a demo of ApsaraVideo MediaBox SDK

Scan the following QR code to download and install a demo of ApsaraVideo MediaBox SDK.

image.png

For more information about the demo source code, see Demo.

Step 4: Apply for a license

  1. Log on to the ApsaraVideo VOD console.

  2. In the left-side navigation pane, choose SDK Management > My Licenses.

  3. Click the Application Management tab and then click Create Application.

  4. On the Create Application panel, configure the application information.

    Configure the following parameters: Application Name, Platform Type, Android Package Name, Bundle ID, Web Domain Name, and HarmonyOS BundleID. Click Create to create the application.

    image

    Associate the signature of an Android application

    Note
    • The signature is required only if you select Android for the Platform Type parameter and select Associate Signature.

    • This operation improves application security and prevents the license from being used by another application with the same package name.

    • The following SDKs do not require a signature: ApsaraVideo MediaBox SDK V1.7.0 and later, ApsaraVideo Player SDK V5.5.2 and later, Push SDK V4.4.9 and later, and Short Video SDK V3.36.0 and later.

    To obtain the MD5 signature of an Android application, you can use one of the following methods:

    • Run the keytool -v -list -keystore your.keystore command to query the MD5 signature.

    • To obtain the signature from Android Studio, click Gradle in the right-side navigation pane, find the corresponding application, and then choose Tasks > android > signingReport. In this case, you must convert the letters into lowercase and remove semicolons (;) from the obtained MD5 signature.image.png

  5. Click the License Management tab and then click Activate License.image

    Perform operations based on whether you have purchased licenses.

    • If you have purchased licenses, select an order from the drop-down list.

    • If no orders are available, click Create SDK License Order from the drop-down list.

    To purchase a license, go to the ApsaraVideo MediaBox SDK buy page, select an SDK and the corresponding functional modules based on your business requirements, and then place the order.

    Important

    As shown in the following figure, you can purchase only one SDK in a single order. For example, you cannot purchase ApsaraVideo Player SDK Standard Edition and Short Video SDK Standard Edition in an order.image

  6. Confirm your configurations and click Associate.

    Note

    You can bind a license to only one application across Android, iOS, HarmonyOS, and web platforms.

    image

  7. Download the license file.

    Go back to the License Management tab, find the application that you want to configure, and then click Download Certificate to download the license file. Save the license key displayed below the tab. The license file and key are required to integrate the license into the application project. For more information, see Bind a license.

    image

Step 5: Integrate ApsaraVideo MediaBox SDK and configure the license

For more information, see Quick integration by scenario.

Step 6: Use ApsaraVideo MediaBox SDK based on your business requirements

For more information, see Integration by module.

Contact us

To obtain more information and technical support for ApsaraVideo MediaBox SDK, scan the following QR code by using DingTalk to join the ApsaraVideo MediaBox SDK user group.7b92ae0abc009bba851be4ca23d084aa.png