Run a Sample ILS Project - Android
Video SDK provides open-source sample project videosdk-hls-android-kotlin-example on Github. This document introduces how to run this project.
Prerequisites
- Development environment requirements:
- Java Development Kit
- Android Studio 3.0 or later
- A physical or virtual mobile device running Android 5.0 or later
- 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.
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.
- Kotlin
- Java
git clone https://github.com/videosdk-live/videosdk-hls-android-kotlin-example.git
git clone https://github.com/videosdk-live/videosdk-hls-android-java-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.
auth_token = "TEMPORARY-TOKEN";
Step 3: Run the sample app
Run the android app with Shift+F10 or the ** ▶ Run ** from toolbar.
Got a Question? Ask us on discord