caution
This page has been deprecated.
We've released a new version of pages with some improvements and smoother experience.
Here is the link of SDK for this page.
Getting Started - Android SDK
Android SDK is natively written SDK using Java. It is compatible with both Java and Kotlin.
Install an Android SDK​
The easiest way to get started is by installing the sdk in your app.
Step 1: Add the repo to project's build.gradle
file.​
build.gradle
allprojects {
repositories {
// ...
maven { url 'https://jitpack.io' }
}
}
Step 2: Add the dependency in app/build.gradle
:​
app/build.gradle
dependencies {
implementation 'live.videosdk:android-sdk:0.0.8'
// other app dependencies
}
Step 3: Add all the following permissions to AndroidManifest.xml​
AndroidManifest.xml
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
Step 4: Extend the android.app.Application class and create MainApplication.java class with the following code​
MainApplication.java
package live.videosdk.demo;
import android.app.Application;
import live.videosdk.android.VideoSDK;
public class MainApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
VideoSDK.initialize(getApplicationContext());
}
}
Step 5: Add MainApplication to AndroidManifest.xml​
AndroidManifest.xml
<application
android:name=".MainApplication"
>
<!-- ... -->
</application>
note
Check out official example of Android SDK implementation: videosdk-rtc-android-java-sdk-example
Got a Question? Ask us on discord