Skip to main content
Version: 0.0.x

Run a Sample ILS Project

Video SDK provides open-source sample project videosdk-hls-react-native-sdk-example on Github. This document introduces how to run this project.

Prerequisites

  • React Native 0.59.10 or later
  • Node 10 or later
  • Valid Video SDK Account
  • For Android
    • Java Development Kit (JDK) 8 or later
    • Android Studio (latest version recommended)
    • A physical or virtual mobile device running Android 5.0 or later
  • For iOS
    • Xcode 9.4 or later
    • CocoaPods
    • A physical or virtual mobile device running iOS 9.0 or later

Generate Token

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

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


tip

The best practice for getting token includes you 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-hls-react-native-sdk-example.git

Step 2: Modify src/api/api.js file

Generate temporary token from Video SDK Account.

export const getToken = async () => {
return "VIDEOSDK_DASHBOARD_TOKEN"; // Update Token here
};

Step 3: Install the dependencies

Install dependencies of all the project dependencies.

npm install

Step 4: Run the sample app

Bingo, it's time to push the launch button.

npm run start
npm android
npm ios

Got a Question? Ask us on discord