Swift

Creating the Project

You will start by creating a new Xcode project:

  1. Open Xcode and, from the menu, select File > New > Project....

  2. Select iOS as platform.

  3. Select a App for the Application type and click Next.

  4. For the Product Name type in VonageVideoTutorialApp.

  5. Select or add the relevant value for Team and Organisation Identifier. NB: If you don't possess that info, select None for Team and enter com.test for Organisation Identifier.

  6. Use SwiftUI for Interface and Swift for Language.

  7. Ensure that both Use Core Data and Include Tests options are deselected. Click Next.

  8. Select a place where your Xcode project will reside.

  9. You now have a brand new Xcode project.

Installing the SDK

Now that the Xcode project is created you can install the Vonage Video SDK. We will be doing this using Swift Package Manager:

  1. In Xcode, click on File > Add Package Dependencies...

  2. In the search box, paste in the URL for the Vonage Video SDK:

  3. Choose your dependency rule, you can specify a range of versions, an exact version or the main branch.

  4. Add the dependency, Xcode will now download the SDK.

Basic text chat

Follow this tutorial to build basic text chat from scratch using the Vonage Video API. It is the quickest way to build a proof of concept for this functionality on the video platform.

以下の言語で利用可能:
JavaScript Java Swift
手順
1
Overview
2
Before You Begin
3
Configure a Vonage Video Application
4
Creating the Project
5
Setting Up Authentication
6
Connecting to the Session
7
Sending a Signal
8
Receiving a Signal
9
Testing your Code
10
Conclusion