Instantly integrate Agora in your own Android application or prototype.
- Android 24+
- Android Studio
- An Agora developer account
Step 1: Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2: Add the dependency
dependencies {
implementation 'com.github.AgoraIO-Community:VideoUIKit-Android:version'
}
Then sync gradle build files. More information on JitPack.
Once installed, you can add the AgoraVideoViewer from within the context of your MainActivity like so:
// Create AgoraVideoViewer instance
val agView = AgoraVideoViewer(this, AgoraConnectionData("my-app-id"))
// Fill the parent ViewGroup (MainActivity)
this.addContentView(
agView,
FrameLayout.LayoutParams(
FrameLayout.LayoutParams.MATCH_PARENT,
FrameLayout.LayoutParams.MATCH_PARENT
)
)
To join a channel, simply call:
agView.join("test", role=Constants.CLIENT_ROLE_BROADCASTER)
- Muting/Unmuting a remote member
- Usernames
- Promoting an audience member to a broadcaster role.
- Layout for Voice Calls
- Cloud recording
The plan is to grow this library and have similar offerings across all supported platforms. There are already similar libraries for Flutter, React Native, and iOS, so be sure to check them out.