Swift

Overview

Add the Vonage Video iOS SDK so you can create OTSession, OTPublisher, and OTSubscriber objects and register observability delegates in later steps.

Adding the Vonage Video Library

Add the Vonage Client SDK Video iOS package:

  1. In Xcode, select File > Add Package Dependencies…
  2. Enter the repository URL: https://github.com/opentok/vonage-client-sdk-video.git
  3. Choose the version range recommended in the iOS SDK overview.
  4. Add the OpenTok library to your app target.

CocoaPods

Tap to expand installation steps
  1. In Terminal, navigate to your project root and run pod init.
  2. Edit the Podfile and add:
  1. Run pod install and open the .xcworkspace file.

Import the Library

Create VonageVideoManager.swift and import the SDK:

You will use this file as the central place for session, publisher, subscriber, and observability logic—similar to MainActivity in the Android tutorial.