Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Join a conference

VTCoco edited this page Sep 25, 2019 · 3 revisions

Following the process of creating a conference, joining a conference is really simple.

Note that a conference must be created before joining it. You can propagate to your users the conferenceID obtained from the create success callback or you can create a conference with the same conferenceAlias to have the same conference pointer. The best practice being propagating the obtained conferenceID

Definition

Joining

To join a conference, you must use the standard join method available in the ConferenceService of the SDK:

  • conferenceID String - Conference identifier retrieved from create success response.
  • success ((_ json: [String: Any]?) -> Void)? - A block object to be executed when the server connection sequence ends. This block has no return value and takes a [String: Any] argument that corresponds to a JSON dictionary object.
  • fail ((_ error: NSError) -> Void)? - A block object to be executed when the server connection sequence ends. This block has no return value and takes a single NSError argument that indicates whether the connection to the server succeeded.

Usage

let conferenceID = "some-id-obtained-from-voxeet"
VoxeetSDK.shared.conference.join(conferenceID: conferenceID, success: { json in
}, fail: { error in
})

Next

When the success callback is called, the user is in the conference and will have soon information of the other users and be connected with them.

Clone this wiki locally