Swift
Connecting to the Session
You may have noticed the session variable being created in the VonageVideoSDK class. This initializes a session object, now we need to connect to the session.
- Copy the following code to update the initializer for the
VonageVideoSDKclass:
session.connect() tells the SDK to connect to the API. It takes our token, which is our authentication token, and connects us to the API.
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.
手順
1
Overview2
Before You Begin3
Configure a Vonage Video Application4
Creating the Project5
Setting Up Authentication6
Connecting to the Session7
Sending a Signal8
Receiving a Signal9
Testing your Code10
Conclusion