Suggestions

close search

Back to Basic Video Chat Overview

Basic Video Chat Step 1: Getting Started

  1. 1
    Basic Video Chat Step 1:
    Setting up the test web service
  2. 2
    Basic Video Chat Step 2:
    Configuring and testing the app
  3. 3
    Basic Video Chat Step 3:
    Initializing an OpenTok session
  4. 4
    Basic Video Chat Step 4:
    Connecting to the session
  5. 5
    Basic Video Chat Step 5:
    Publishing a stream to the session
  6. 6
    Basic Video Chat Step 6:
    Subscribing to audio-video streams
  7. 7
    Basic Video Chat Step 7:
    Customizing the UI

First, clone the https://github.com/opentok/learning-opentok-ios repository:

git clone git@github.com:opentok/learning-opentok-ios.git
cd learning-opentok-ios

Switch to the basics branch using the git checkout basics command.

The code in this branch shows you how to:

Before you can test the application, you need to make some settings in Xcode and set up a web service to handle some OpenTok-related API calls.

This project uses CocoaPods to load the OpenTok SDK:

  1. Install CocoaPods as described in CocoaPods Getting Started.

  2. In Terminal, cd to your project directory and enter the following:

    pod install

  3. Open the LearningOpenTok.xcworkspace file in XCode.

You will notice the project is missing a header file -- Config.h. To fix this, copy the SampleConfig.h file to a Config.h file.

  1. 1
    Basic Video Chat Step 1:
    Setting up the test web service
  2. 2
    Basic Video Chat Step 2:
    Configuring and testing the app
  3. 3
    Basic Video Chat Step 3:
    Initializing an OpenTok session
  4. 4
    Basic Video Chat Step 4:
    Connecting to the session
  5. 5
    Basic Video Chat Step 5:
    Publishing a stream to the session
  6. 6
    Basic Video Chat Step 6:
    Subscribing to audio-video streams
  7. 7
    Basic Video Chat Step 7:
    Customizing the UI