Run a Sample Project
Video SDK provides open-source sample project videosdk-rtc-ios-sdk-example) on Github. This document introduces how to run this project.
Prerequisites
- Xcode 9.0 or later
- An iOS device running iOS 9.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 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.
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-rtc-ios-sdk-example.git
Step 2: Install the dependecies
Install all the pod dependencies
pod install
Step 2: Modify Constants.swift
Open your favorite code editor and add AUTH_TOKEN
in it.
public let AUTH_TOKEN = "TEMPORARY-TOKEN"
Step 3: Run the sample app
Run the iOS app with ⌘ + R. or the ▶ Run from toolbar.
Got a Question? Ask us on discord