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.
Get your API key and Secret key
This guide will help you to generate API key and secret from dashboard.
- API Key is unique identifier used to authenticate a user calling to Video SDK API.
- Secret Key cryptography relies on using the same key to encode and then later decode a message. Thus, only those who know the "secret" can read the message.
Step 1. Generate API Key from Dashboard
Go to Video SDK Dashboard, navigate to API Keys. Click on ADD NEW button to generate your own API key and Secret for the project.
Step 2. Enter your Project Name
Enter your project name as shown below. Project name will help you to organise API keys and secrets for multiple projects and environments.
Step 3. Use API key / Secret or Token
After submitting your project name, you can follow either of two paths:
- Development Env: You can just click on Generate Token and get started with the project setup.
- Production Env: For production, please setup authentication server to authenticate and authorize all the users.
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.
Constants.swift
public let AUTH_TOKEN = "TEMPORARY-TOKEN"
Step 3: Run the sample app
Run the iOS app with ⌘ + R. or the ▶ Run from toolbar.