Skip to navigation

VIConference

VoximplantCalls · iOS SDK v3

View as Markdown

Class that represents a conference and provides the API to manage it.

@objc class VIConference

Properties

delegate

@objc weak var delegate: VIConferenceDelegate?

Conference delegate.

duration

@objc var duration: TimeInterval { get }

Conference duration in seconds.

endpointId

@objc var endpointId: String? { get }

Conference endpoint id of this client.

Available after conference(_:didConnectWithHeaders:).

endpoints

@objc var endpoints: [VIEndpoint] { get }

Array of the endpoints associated with the conference.

id

@objc var id: String { get }

Conference id.

isBroadcasting

@objc var isBroadcasting: Bool { get }

Whether broadcast sharing is active for the conference.

isMuted

@objc var isMuted: Bool { get set }

Whether the audio is muted.

localVideoStreams

@objc var localVideoStreams: [VILocalVideoStream] { get }

Array of the local video streams that are currently being sent.

This array can contain the local video stream instance before a connection to a conference has been established.

state

@objc var state: VICallState { get }

Conference state.

Methods

hangup(withHeaders:)

@objc func hangup(withHeaders headers: [String : String]? = nil)

Terminates the conference on the current user.

Parameters

headers [String : String]?

Optional set of headers to be sent. Names should begin with “X-” to be processed by the SDK. The default value is nil.

join()

@objc func join()

Joins a conference.

muteAudio(_:completion:)

@objc func muteAudio(_ mute: Bool, completion: @escaping (VICallError?) -> Void)

Mutes or unmutes the audio in the conference.

Parameters

mute Bool

Whether the audio should be muted

completion @escaping (VICallError?) -> Void

Completion handler to call when the operation is complete. This handler is executed on the delegate queue. The SDK passes a VICallError object if the operation has failed.

Other conference endpoints receive endpoint(_:didChangeMuteStatus:) event.

replaceSendingVideo(with:completion:)

@objc func replaceSendingVideo(
    with stream: VILocalVideoStream,
    completion: @escaping (VICallError?) -> Void
)

Replaces the local video stream that is currently sending in the conference with another local video stream.

Parameters

stream VILocalVideoStream

New local video stream.

completion @escaping (VICallError?) -> Void

Completion handler to call when the operation is complete. This handler is executed on the delegate queue. The SDK passes the VICallError object if the operation has failed.

sendDTMF(_:completion:)

@objc func sendDTMF(_ dtmf: String, completion: @escaping (VICallError?) -> Void)

Sends DTMF(s) within the conference.

Parameters

dtmf String

DTMF(s)

completion @escaping (VICallError?) -> Void

Completion handler to call when the operation is complete. This handler is executed on the delegate queue. The SDK passes the VICallError object if the operation has failed.

sendInfo(_:mimeType:headers:)

@objc func sendInfo(_ body: String, mimeType: String, headers: [String : String]? = nil)

Sends an INFO message within the conference.

Parameters

body String

Custom string data

mimeType String

MIME type of info

headers [String : String]?

Optional set of headers to be sent with the message. Names should begin with “X-” to be processed by the SDK. The default value is nil.

sendMessage(_:)

@objc func sendMessage(_ message: String)

Sends a message within the conference.

Parameters

message String

Message text

Implemented atop of SIP INFO for communication between the call endpoint and the Voximplant Cloud.

startInAppScreensharing(with:completion:)

@objc func startInAppScreensharing(
    with stream: VILocalVideoStream,
    completion: @escaping (VICallError?) -> Void
)

Starts sending in-app screen sharing to the conference.

Parameters

stream VILocalVideoStream

Local video stream with VIInAppSharingVideoSource

completion @escaping (VICallError?) -> Void

Completion handler to call when the operation is complete. This handler is executed on the delegate queue. The SDK passes the VICallError object if the operation has failed.

Other conference participants receive theconference(_:didAddEndpoint:) event.

startSendingVideo(with:completion:)

@objc func startSendingVideo(
    with stream: VILocalVideoStream,
    completion: @escaping (VICallError?) -> Void
)

Starts sending video to the conference.

Parameters

completion @escaping (VICallError?) -> Void

Completion handler to call when the operation is complete. This handler is executed on the delegate queue. The SDK passes the VICallError object if the operation has failed.

stopInAppScreensharing(completion:)

@objc func stopInAppScreensharing(completion: @escaping (VICallError?) -> Void)

Stops sending in-app screen sharing in the conference.

Parameters

completion @escaping (VICallError?) -> Void

Completion handler to call when the operation is complete. This handler is executed on the delegate queue. The SDK passes the VICallError object if the operation has failed.

Other conference participants receive theconference(_:didRemoveEndpoint:) event.

stopSendingVideo(completion:)

@objc func stopSendingVideo(completion: @escaping (VICallError?) -> Void)

Stops sending video in the conference.

Parameters

completion @escaping (VICallError?) -> Void

Completion handler to call when the operation is complete. This handler is executed on the delegate queue. The SDK passes the VICallError object if the operation has failed.

Relationships

Inherits From: NSObject

Conforms To: ObjectiveC.NSObjectProtocol, Swift.CVarArg, Swift.CustomDebugStringConvertible, Swift.CustomStringConvertible, Swift.Equatable, Swift.Hashable