Run Interactive Live Streaming Project - iOS
Video SDK provides the open-source sample project videosdk-ils-iOS-sdk-example on GitHub. This page shows how to run it.
The sample project uses iOS SDK 3.x. To build an app with 4.0.0, follow the Interactive Live Streaming Quick Start. The Migration Guide lists what changed in 4.0.0.
Prerequisites
- Xcode 16.1 or later
- An iOS device running iOS 17.6 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.
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-ils-iOS-sdk-example.git
After that change directory to the project folder:
cd videosdk-ils-iOS-sdk-example/VideoSDK-ILS-iOS-Example
Step 2: Install the dependencies
Open VideoSDK-ILS-iOS-Example.xcodeproj in Xcode. Xcode installs the SPM dependencies when it loads the project.
Step 3: Modify JoinLiveStreamView.swift
Open JoinLiveStreamView.swift and add your VideoSDK AUTH_TOKEN.
let AUTH_TOKEN: String = "YOUR_TOKEN"
Step 4: Run the Sample App
Run the iOS app with ⌘ + R or ▶ Run in the toolbar.
Got a Question? Ask us on discord

