Learn how to build and run the Push SDK for Android demo.
Download the demo
Download the latest Push SDK demo source code and installation package from Download SDK.
Build the demo
Environment requirements
-
System requirements
Category
Requirement
Operating system
Android 5.0 or later.
API level
API level 21 or later.
CPU architecture
ARM64 and ARMv7.
Run the demo
-
Download the demo package from Download SDK.
-
In Android Studio, click Open an Existing Project and select the demo project.
-
After the project builds, click Run to install the demo on your Android device.
-
Explore the demo features.
Live Ingest
Details
Live ingest homepage
The homepage displays five feature entries:
Camera Streaming
Screen Recording Streaming
Stream Playback
Co-streaming
PK Interaction
The SDK version v6.4.0 is displayed at the bottom.
Android demo directory structure
The demo source code has the following directory structure.
amdemos-android-live ~/Documents/work/aliyun/media-box/demo/amde...
AndroidThirdParty
config.gradle
AUIFoundation
AVBaseUI
AVMatisse
AVTheme
AVUtils
.gitignore
README.md
gradle
LiveApp
LiveBasic
live_pull
live_pull_rts
live_push
live_screencap
LiveBeauty
live_beauty
live_queenbeauty
LiveCommon
live_basic_common
live_commonbiz
live_commonutils
live_interactive_common
LiveInteractive
barestream_interactive
live_interactive
live_pk
-
LiveAPP: the application module and entry point of the demo.The project root directory contains the following modules: AndroidThirdParty, AUIFoundation, LiveApp, LiveBasic, LiveBeauty, LiveCommon, and LiveInteractive, along with configuration files such as build.gradle, settings.gradle, and sdk_type_config.gradle. The LiveApp module contains build_lib.gradle, build.gradle, dependencies.gradle, livepush.jks, proguard-rules.pro, and the src directory.
-
Features are organized into sub-modules, such as
LiveBasicfor basic streaming andLiveBeautyfor retouching.
FAQ
How do I get an ingest URL?
Get an ingest URL from Generate ingest and streaming URLs.
What should I do if stream ingest fails?
Use the troubleshooting tool to check if your ingest URL is valid.
How do I view information about my active streams?
On the Stream management page, click the Active Streams tab to view and manage your active audio and video streams.
How do I play the stream?
After stream ingest starts, use a player such as ApsaraVideo Player, FFplay, or VLC to play the stream. Get a streaming URL from Generate ingest and streaming URLs.