Build the Android Push SDK demo

Updated at:
Copy as MD

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

  1. Download the demo package from Download SDK.

  2. In Android Studio, click Open an Existing Project and select the demo project.

  3. After the project builds, click Run to install the demo on your Android device.

  4. Explore the demo features.

    Live Ingest

    Details

    Live ingest homepage

    Live ingest homepage

Android demo directory structure

The demo source code has the following directory structure.Demo directory structure

  • LiveAPP: the application module and entry point of the demo.

    image.png

  • Features are organized into sub-modules, such as LiveBasic for basic streaming and LiveBeauty for 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.