https://github.com/meherdeep/agora-android-extensions
A sample repository that shows how to add extensions from the Agora Extension Marketplace to the Agora Android UIKit
https://github.com/meherdeep/agora-android-extensions
Last synced: about 2 months ago
JSON representation
A sample repository that shows how to add extensions from the Agora Extension Marketplace to the Agora Android UIKit
- Host: GitHub
- URL: https://github.com/meherdeep/agora-android-extensions
- Owner: Meherdeep
- License: mit
- Created: 2021-12-16T21:03:57.000Z (over 3 years ago)
- Default Branch: synervoz
- Last Pushed: 2022-03-03T20:22:15.000Z (about 3 years ago)
- Last Synced: 2025-02-08T19:43:48.929Z (3 months ago)
- Language: Kotlin
- Size: 291 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Agora UIKit for Android
Instantly integrate Agora in your own Android application or prototype.
![]()
## Requirements
- Android 24+
- Android Studio
- [An Agora developer account](https://www.agora.io/en/blog/how-to-get-started-with-agora?utm_source=github&utm_repo=agora-android-uikit)## Installation
**Step 1:** Add it in your root build.gradle at the end of repositories:
```css
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```**Step 2:** Add the dependency
```css
dependencies {
implementation 'com.github.AgoraIO-Community:Android-UIKit:version'
}
```Then sync gradle build files. More information on [JitPack](https://jitpack.io/#AgoraIO-Community/Android-UIKit).
## Usage
Once installed, you can add the AgoraVideoViewer from within the context of your MainActivity like so:
```kotlin
// 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:
```kotlin
agView.join("test", role=Constants.CLIENT_ROLE_BROADCASTER)
```### Roadmap
- [ ] Muting/Unmuting a remote member
- [ ] Usernames
- [ ] Promoting an audience member to a broadcaster role.
- [ ] Layout for Voice Calls
- [ ] Cloud recording## UIKits
The plan is to grow this library and have similar offerings across all supported platforms. There are already similar libraries for [Flutter](https://github.com/AgoraIO-Community/Flutter-UIKit/), [React Native](https://github.com/AgoraIO-Community/ReactNative-UIKit), and [iOS](https://github.com/AgoraIO-Community/iOS-UIKit/), so be sure to check them out.