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.
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.
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:

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
Clone the demo source code from GitHub by referring to the latest README file.
Open the demo project in Android Studio.
Obtain the MD5 signature for license authorization by using one of the following methods:
Search for
signingConfigsand configure the signature information.
Method 1: Call the getSingInfo(Context context) method in the
AUIFoundation/AVUtils/src/main/java/com/aliyun/aio/utils/SignatureUtils.javafile to obtain the signature.Method 2: Download the signature tool to obtain the signature.
Apply for the SDK license by referring to Manage licenses, and obtain the license key and license file.
Place the license file in the
AIOApp/src/main/assetsdirectory.Open the AIOApp/src/main/AndroidManifest.xml file, search for
com.aliyun.alivc_license.licensekeyandcom.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.
Compile and run the code.
Connect to the Android device and choose .
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
Clone the demo source code from GitHub by referring to the latest README file.
Run the
pod installcommand in the AlivcAIODemo directory to install dependencies.NoteIf installation fails, run
pod install --reop-update.Open the AlivcAIODemo.xcworkspace project in Xcode.
Apply for the SDK license by referring to Manage licenses, and obtain the license key and license file.
Rename the obtained license file to
license.crtand copy it to the AlivcAIODemo directory.Open the
AlivcAIODemo/Info.plistfile and change the value ofAlivcLicenseKeyto the obtained license key.
Compile and run the code.