Skip to main content
Version: 1.1.x

Run a Sample ILS Project - Flutter

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

Prerequisites

  • If your target platform is iOS, your development environment must meet the following requirements:
    • Flutter 2.0 or later
    • Dart 2.12.0 or later
    • macOS
    • Xcode (Latest version recommended)
  • If your target platform is Android, your development environment must meet the following requirements:
    • Flutter 2.0 or later
    • Dart 2.12.0 or later
    • macOS or Windows
    • Android Studio (Latest version recommended)
  • If your target platform is iOS, you need a real iOS device.
  • If your target platform is Android, you need an Android simulator or a real Android device.
  • Valid Video SDK Account

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.

s

Step 1: Clone the sample project

Clone the repository to your local environment.

$ git clone https://github.com/videosdk-live/videosdk-hls-flutter-sdk-example.git

Step 2: Copy the .env.example file to .env file.

Open your favorite code editor and copy .env.example to .env file.

$ cp .env.example .env

Step 3: Modify .env file

Paste earlier generated temporary token here.

.env
AUTH_TOKEN = "TEMPORARY-TOKEN";

Step 4: Install the dependecies

Install all the dependecies to run the project.

flutter pub get

Step 4: Run the sample app

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

flutter run

Got a Question? Ask us on discord