Skip to main content
Version: 2.0.x

Run Interactive Live Streaming Project - iOS

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

Prerequisites​

  • Xcode 15.0 or later
  • An iOS device running iOS 13.0 or later.
  • Valid Video SDK Account
  • Valid developer signature and device permission settings.

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.

Step 1: Clone the sample project​

Clone the repository to your local environment.

$ git clone https://github.com/videosdk-live/videosdk-ils-iOS-sdk-example.git

After that change directory to the project folder:

cd VideoSDK-ILS-iOS-Example

Step 2: Install the dependencies​

Install all the pod dependencies

pod install

Step 3: Modify LiveStreamViewController.swift​

Open your favorite code editor and add VideoSDK token in it.

LiveStreamViewController.swift
var token = "YOUR_TOKEN";

Step 4: Run the sample app​

Run the iOS app with ⌘ + R. or the ** ▶ Run ** from toolbar.

Got a Question? Ask us on discord