All Products
Search
Document Center

Apsara Video SDK:Demo experience

Last Updated:Jun 30, 2025

The demos of ApsaraVideo MediaBox SDK showcase a wide range of features including playback and stream ingest for both short and long video scenarios. This topic describes how to install and try the demo, and how to download the source code to compile and run the demo.

Important
  1. The resource download service built in the demo is a temporary service whose accessibility and effectiveness cannot be guaranteed. It is used for demonstrations only and cannot be directly used in commercial applications.

  2. If you need to launch your business online and download resources in your business, use your own server to provide these resources. Alibaba Cloud does not provide resource download or help you manage such service.

Scenarios

  • Real-time Conversational AI: allows for efficient audio and video interactions between AI agents and users

  • Live streaming: E-commerce livestreaming, corporate training, co-streaming, and more

  • Interactive entertainment & calling: voice chat rooms, online karaoke rooms, one-to-one calls, group calls, and more

  • VOD: mini-dramas, information feed playback, immersive playback, short video production, and more

Try the demo

Scan the following QR code to download and install the ApsaraVideo MediaBox SDK demo:

image.png

Run the demo source code

Android

Development environment

Item

Description

Android Studio

To download it, visit Android Studio.

Gradle

Gradle 7.0.2 or later and plugin V4.1.2 are recommended.

Gradle JDK

Gradle JDK 11 is recommended. To configure Gradle JDK, choose Preferences > Build, Execution, Deployment > Build Tools > Gradle > Gradle JDK. Set the Gradle JDK to use JDK 11. If Gradle JDK 11 is not available, upgrade your Android Studio version.

Runtime environment

A physical device that runs Android 4.3 or later. Debugging on a simulator is not supported.

Run the demo

  1. Clone the demo source code from GitHub by referring to the latest README file.

  2. Open the demo project in Android Studio.

  3. Obtain the MD5 signature for license authorization by using one of the following methods:

    1. Search for signingConfigs and configure the signature information.

      image.png

      Method 1: Call the getSingInfo(Context context) method in the AUIFoundation/AVUtils/src/main/java/com/aliyun/aio/utils/SignatureUtils.java file to obtain the signature.

      Method 2: Download the signature tool to obtain the signature.

  4. Apply for the SDK license by referring to Manage licenses, and obtain the license key and license file.

    1. Place the license file in the AIOApp/src/main/assets directory.

    2. Open the AIOApp/src/main/AndroidManifest.xml file, search forcom.aliyun.alivc_license.licensekey and com.aliyun.alivc_license.licensefile, and change their values to the obtained license key and path of the license file, respectively. For more information, see Bind a license.

      image.png

  5. Compile and run the code.

    Connect to the Android device and choose Run > Run 'app'.

iOS

Development environment

Item

Description

macOS

macOS High Sierra 10.13 or later

Xcode

Xcode 13 or later

CocoaPods

CocoaPods 1.10 or later

Runtime environment

A physical device that runs iOS 9.0 or later. Debugging on a simulator is not supported.

Run the demo

  1. Clone the demo source code from GitHub by referring to the latest README file.

  2. Run the pod install command in the AlivcAIODemo directory to install dependencies.

    Note

    If installation fails, run pod install --reop-update.

  3. Open the AlivcAIODemo.xcworkspace project in Xcode.

  4. Apply for the SDK license by referring to Manage licenses, and obtain the license key and license file.

    1. Rename the obtained license file to license.crt and copy it to the AlivcAIODemo directory.

    2. Open the AlivcAIODemo/Info.plist file and change the value of AlivcLicenseKey to the obtained license key.image.png

  5. Compile and run the code.