The MediaBox audio and video software development kit (SDK) demo demonstrates best practices for the end-to-end ApsaraVideo solution. It includes comprehensive demos for the player, short videos, and live stream ingest. This topic helps you quickly explore our products and services.
The built-in resource download service in the demo is a temporary service provided by Alibaba Cloud for demonstration purposes only. This service is subject to change, and its accessibility and validity are not guaranteed. Do not use this service directly in commercial business scenarios.
For commercial use, you must replace the resource download server address with your own. Alibaba Cloud does not provide any features or support related to this resource download address.
Feature experience
Demo source code
Platform |
|
|
|
|
Web | Android | iOS | Flutter | |
Features | Feature demo, player integration | Feeds stream, mini-series, short video | Feeds stream, mini-series, short video | Feeds stream, mini-series, short video |
Experience |
| |||
Complete demo | (For complete playback scenarios) | (For complete playback scenarios) | ||
Standalone features | / | (For standalone playback features) | (For standalone playback features) | / |
Integration guide | ||||
Scenarios | / | Mini-series solution (For mini-series scenarios) | ||
Web
The web demo is available for an online experience.

Mobile
The mobile demo supports various scenarios, such as feed stream, mini-series, and short videos. You can explore the features based on your needs.
Feed stream scenario: Supports nested tab pages and swipe-to-play functionality. This scenario is suitable for information feed applications.
Mini-series scenario: Provides a drawer-style episode list. Users can tap an episode to navigate to it.
Short video scenario: Uses a vertical layout for an immersive, full-screen playback experience. Users can swipe up or down to switch between videos.
Demo preview

Run the demo
The ApsaraVideo Player SDK provides a complete playback solution that covers everything from basic integration to advanced features. It helps developers quickly build professional audio and video applications. Before you integrate the SDK, we recommend running the open-source demo to understand its core implementation logic.
Prerequisites
You have obtained the Player SDK License and the corresponding authorization and License Key. To attach the license to your application, see Attach License.

Run the following command in your terminal to clone the demo project to your local machine.
Android
git clone https://github.com/MediaBox-Demos/AliPlayer-Android.git cd AliPlayer-AndroidiOS
git clone https://github.com/MediaBox-Demos/AliPlayer-iOS.git cd AliPlayer-iOS
Folder structure
Android
AliPlayer-Android/
├── Demo/ # Complete feature demo app
├── API-Example/ # API example project written in Java
├── SDK/ # SDK files and documents
├── README.md # Project description (Chinese)
├── README-EN.md # Project description (English)
└── LICENSE # Open source licenseiOS
AliPlayer-iOS/
├── Demo/ # Complete feature demo app
├── API-Example/ # API example project written in Objective-C
├── Swift-Call-OC-Example/ # Swift calling Objective-C example project
├── SDK/ # SDK files and documents
├── README.md # Project description (Chinese)
├── README-EN.md # Project description (English)
└── LICENSE # Open source licenseModule introduction
Demo (complete feature demo)
This is a production-level demo for a player application. It includes various playback scenarios and UI components, such as feed stream, mini-series, and short video playback. For instructions on how to run the demo, see the Android feature demo guide and the iOS feature demo guide.
API-Example (standalone feature demo)
Android
This project is a modular Android example developed in Java that demonstrates the core features of the SDK. The project uses a strict modular design, where each module implements a single feature to maintain clear logic. Schema routing is used for module decoupling and unified management. For instructions on how to run the project, see the API-Example guide.
iOS
This is an iOS example project developed in Objective-C. It uses a plug-in architecture managed by CocoaPods to help developers quickly integrate the core features of the SDK. Each plug-in demonstrates a single feature, and the minimalist code ensures clear logic. Scheme routing is used for decoupled navigation between plug-ins. For instructions on how to run the project, see the API-Example guide.
If your business layer is written in Swift, you can use the API-Example as a reference for hybrid development. For more information, see the Swift-Call-OC-Example guide. This example project demonstrates how to call Objective-C from Swift and helps you quickly master Swift/Objective-C hybrid programming. This is useful for running the API-Example and integrating the SDK into a Swift business layer.




