Skip to main content

Configure your project

To complete the SDK import process, you must add the player license key and import the VPPlayer_SDK.

  1. In Xcode, open AppDelegate.swift.
  2. Import the "VPPlayer_SDK".
  3. Call VPPlayer.setup() in the _didFinishLaunchingWithOptions_ function.

You have configured your project. You can now add a player to your view.

VPPlayer.setup(apiKey: "API-KEY", projectId: "Project-ID"){ success in 
//print(success)
}