Skip to main content
Version: 3.x.x

Run Audio & Video Call Project - Android

VideoSDK provides an open-source sample project, videosdk-rtc-android-kotlin-sdk-example, on GitHub. This page shows how to run it.

note

This sample still depends on Android SDK 2.0.1, not 3.0.0. For 3.0.0 code, follow the quick start.

Prerequisites​

  • Development environment requirements:
  • An Android device running Android 7.0 (API level 24) or later with an ARM (arm64-v8a or armeabi-v7a) processor, or an emulator with an arm64-v8a system image
  • Valid Video SDK Account

Generate Token​

To manage secured communication, every participant that connects to a meeting needs an access token. You can easily generate this token by using your apiKey and secret-key, which you can obtain from the VideoSDK Dashboard.

For development purpose, you can generate a temporary token from VideoSDK Dashboard's API section.


tip

The best practice for obtaining a token involves generating it from your backend server which will help in keeping your credentials safe.

Run the Sample Project​

Step 1: Clone the sample project​

Clone the repository to your local environment.

git clone https://github.com/videosdk-live/videosdk-rtc-android-kotlin-sdk-example.git

Step 2: Modify local.properties​

Open your favorite code editor, add auth_token in local.properties file and paste the earlier generated temporary token as value, without quotes.

local.properties
auth_token=TEMPORARY-TOKEN

Step 3: Run the Sample App​

Run the android app with Shift+F10 or the ▶ Run button in the toolbar.

Got a Question? Ask us on discord