Getting Started

Get a basic integration up and running with the iOS Sceenic Video Plugin

This is a developers' guide for setting up a Sceenic Video Plugin configuration for native iOS apps. We will take you through the basic technical steps for configuration and show you how to create video rooms and initiate video calls.

Prerequisites

Installation

The Plugin can be installed via Cocoapods.

https://guides.cocoapods.org/using/using-cocoapods.html

Add the following to a Podfile:

target '<application-target-name>' do
    use_frameworks!
    pod 'LiveLikeSceenicVideoPlugin'
end

Initialization

For this step, you will need your Client ID to initialize the Engagement SDK. To get your ClientID, follow the instructions in Retrieving your Client ID.

Import the LiveLikeSceenicVideoPlugin:

import LiveLikeSceenicVideoPlugin

Next, create an instance of the LiveLikeSceenicVideoPlugin.

The Access Token of the User will be stored in User Defaults and may not persist across app installations, devices, and/or platforms. We recommend that you override this default behavior and manage where the User's Access Token is stored.

Use your Client ID to create a LiveLikeSceenicPluginConfig. The LiveLikeSceenicPluginConfig is used to initialize the LiveLikeSceenicVideoPlugin.

class AppDelegate: UIResponder, UIApplicationDelegate {
  var sceenicPlugin: LiveLikeSceenicVideoPlugin!
  
  func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 
    var config = LiveLikeSceenicPluginConfig(clientID: "<your-client-id>")
    sceenicPlugin = LiveLikeSceenicVideoPlugin(config: config)  
    return true
  }
}