| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
English | 中文
This project presents you a set of API examples to help you understand how to use Agora APIs.
This section shows you how to prepare, build, and run the sample application.
To build and run the sample application, get an App Id:
Create a developer account at agora.io. Once you finish the signup process, you will be redirected to the Dashboard.
Navigate in the Dashboard tree on the left to Projects > Project List.
Save the App Id from the Dashboard for later use.
Save the App Certificate from the Dashboard for later use.
Open Android/APIExample and edit the app/src/main/res/values/string-configs.xml file. Update YOUR APP ID with your App Id, update YOUR APP CERTIFICATE with the main app certificate from dashboard. Note you can leave the certificate variable null if your project has not turned on security token.
// Agora APP ID. <string name="agora_app_id" translatable="false">YOUR APP ID</string> // Agora APP Certificate. If the project does not have certificates enabled, leave this field blank. // PS:It is unsafe to place the App Certificate on the client side, it is recommended to place it on the server side to ensure that the App Certificate is not leaked. <string name="agora_app_certificate" translatable="false">YOUR APP CERTIFICATE</string>
You are all set. Now connect your Android device and run the project.
Third Part Beauty case use the Agora Beauty API Library
This project contains third-party beauty integration examples, which cannot be enabled by default without configuring resources and certificates. The resource certificate configuration method is as follows:
| SenseTime Beauty SDK Path | Location |
|---|---|
| Android/models | app/src/main/assets/beauty_sensetime/models |
| Android/smaple/SenseMeEffects/app/src/main/assets/sticker_face_shape | app/src/main/assets/beauty_sensetime/sticker_face_shape |
| Android/smaple/SenseMeEffects/app/src/main/assets/style_lightly | app/src/main/assets/beauty_sensetime/style_lightly |
| Android/smaple/SenseMeEffects/app/src/main/assets/makeup_lip | app/src/main/assets/beauty_sensetime/makeup_lip |
| SenseME.lic | app/src/main/assets/beauty_sensetime/license/SenseME.lic |
| FaceUnity Beauty Resources | Location |
|---|---|
| makeup resource(e.g. naicha.bundle) | app/src/main/assets/beauty_faceunity/makeup |
| sticker resource(e.g. fashi.bundle) | app/src/main/assets/beauty_faceunity/sticker |
| authpack.java | app/src/main/java/io/agora/api/example/examples/advanced/beauty/authpack.java |
| ByteDance Beauty Resources | Location |
|---|---|
| resource/LicenseBag.bundle | app/src/main/assets/beauty_bytedance |
| resource/ModelResource.bundle | app/src/main/assets/beauty_bytedance |
| resource/ComposeMakeup.bundle | app/src/main/assets/beauty_bytedance |
| resource/StickerResource.bundle | app/src/main/assets/beauty_bytedance |
| resource/StickerResource.bundle | app/src/main/assets/beauty_bytedance |
Since version 4.0.0, Agora SDK provides an Extension Interface Framework. Developers could publish their own video/audio extension to Agora Extension Market. In this project includes a sample SimpleFilter example, by default it is disabled. In order to enable it, you could do as follows:
Android/APIExample/agora-simple-filter/src/main/jniLibs
├── arm64-v8a
└── armeabi-v7a
Android/APIExample/agora-simple-filter/src/main/agoraLibs
├── arm64-v8a
├── armeabi-v7a
├── x86
└── x86_64
Android/APIExample/agora-simple-filter/src/main/cpp
└── AgoraRtcKit
This project contains custom stream encrypt examples, which cannot be enabled by default. The configuration method is as follows:
Android/APIExample/agora-stream-encrypt/src/main/agoraLibs
├── arm64-v8a
├── armeabi-v7a
├── x86
└── x86_64
Android/APIExample/agora-stream-encrypt/src/main/cpp
└── include
└── agora
The MIT License (MIT)
| Back | FazBrowse Home | New Git URL |