Agora provides an open-source Agora Live sample project on GitHub. This sample project demonstrates how to use the Agora RTC SDK, Agora RTM SDK, and third-party image enhancement SDK to implement the following interactive live streaming scenarios:
- Single Host
- Multiple Hosts
- Virtual Host
- PK Host
- Live-stream Shopping
This document introduces how to run this project and experience interactive live video streaming in each scenario.
- Android Studio 3.0 or later.
- A mobile device running Android 4.1 or later. Agora recommends you run this sample project on a physical mobile device, as some simulators may not support the full features of this project.
Download the sample project
Go to GitHub, and download or clone the AgoraLive repository.
Integrate the FaceUnity SDK
Follow the steps to integrate the FaceUnity SDK into the sample project:
Download FaceUnity SDK v6.4 from the GitHub release. If you cannot download the SDK due to network connectivity issues, try downloading it from Agora here.
Extract the files from the downloaded SDK package, and copy the following files to the folders of your project:
|Files in the FaceUnity SDK package
||File path of your project
Replace FaceUnity certificate file
Contact FaceUnity for a certificate file named
authpack.java, and then replace
faceunity/src/main/java/com/faceunity/authpack.java with your
Get avatar resources
To experience or implement a virtual host scenario, download the avatar resources from Agora here.
Extract the files from the downloaded package, and copy the following files to
Run the project
- Enable the Developer options on your Android device, and then connect it to your computer using a USB cable.
- Open the
AndroidLive-Android folder with Android Studio.
- Click Sync Project with Gradle Files in Android Studio.
- Click Run app in Android Studio. You should see the Agora Live app installed on your device after a while.
- Launch the app, and select whichever scenario you prefer to start interactive live streaming.