VICallSettings
VoximplantCalls · iOS SDK v3
Call settings with additional call parameters, such as the preferred video codec, custom data, extra headers, etc.
@objc class VICallSettings
Initializers
init()
override init()
Creates a call settings object with default values.
init(localVideoStream:receiveVideo:customData:extraHeaders:statsCollectionInterval:preferredVideoCodec:callKitSupport:)
@objc init(
localVideoStream: VILocalVideoStream? = nil,
receiveVideo: Bool = false,
customData: String? = nil,
extraHeaders: [String : String]? = nil,
statsCollectionInterval: TimeInterval = 0,
preferredVideoCodec: VIVideoCodec = .auto,
callKitSupport: Bool = false
)
Creates the call settings.
Properties
callKitSupport
@objc var callKitSupport: Bool
Whether the CallKit integration is enabled for a call.
The default value is false.
Available only for iOS.
Correct CallKit integration requires using this property alongside the VIAudioManager/callKitProviderDidActivateAudioSession() and VIAudioManager/callKitProviderDidDeactivateAudioSession() methods.
customData
@objc var customData: String?
Custom string associated with a call session.
It can be passed to the cloud to be obtained from the CallAlerting event or Call History via Management API.
Maximum size is 200 bytes. Use the sendMessage(_:) method to pass a string over the limit; in order to pass a large data use media_session_access_url on your backend.
description
override var description: String { get }
Settings description.
extraHeaders
@objc var extraHeaders: [String : String]?
Optional set of headers to be sent to the Voximplant cloud. Names should begin with “X-” to be processed by SDK.
localVideoStream
@objc var localVideoStream: VILocalVideoStream?
Local video stream to be sent to a call. Should be nil for audio calls.
preferredVideoCodec
@objc var preferredVideoCodec: VIVideoCodec
Preferred video codec for a particular call that these settings are applied to. The default codec is VIVideoCodec.auto.
receiveVideo
@objc var receiveVideo: Bool
Whether video receiving is enabled in a call.
The default value is false.
If the call is started without video (localVideoStream is nil and receiveVideo is false) and the user enables video in an active call via the startSendingVideo(with:completion:) API, enables video receiving.
statsCollectionInterval
@objc var statsCollectionInterval: TimeInterval
Call statistics collection interval in seconds.
The default value is 0, meaning that the statistics collection feature is disabled.
The interval value should be multiple of 0.5, otherwise the provided value is rounded to a less value that is multiple of 0.5.
Relationships
Inherits From: NSObject
Conforms To: ObjectiveC.NSObjectProtocol, Swift.CVarArg, Swift.CustomDebugStringConvertible, Swift.CustomStringConvertible, Swift.Equatable, Swift.Hashable