Skip to navigation

VIBroadcastSettings

VoximplantCalls · iOS SDK v3

View as Markdown

Brodcast settings with additional parameters.

@objc class VIBroadcastSettings

Initializers

init(localVideoStream:customData:extraHeaders:preferredVideoCodec:)

@objc init(
    localVideoStream: VILocalVideoStream,
    customData: String? = nil,
    extraHeaders: [String : String]? = nil,
    preferredVideoCodec: VIVideoCodec = .auto
)

Creates an instance.

Parameters

localVideoStream VILocalVideoStream

Local video stream Local video stream should be created with a custom video source that is initialized via the init(forBroadcast:frameSize:) API and the forBroadcast parameter as true.

customData String?

Optional custom data

extraHeaders [String : String]?

Optional set of headers to be sent to the Voximplant cloud.

preferredVideoCodec VIVideoCodec

Preferred video codec for a brodcast. The default value is VIVideoCodec.auto.

Properties

customData

@objc var customData: String?

Custom string associated with a conference broadcast 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.

preferredVideoCodec

@objc var preferredVideoCodec: VIVideoCodec

Preferred video codec for a brodcast that these settings are applied to.

The default codec is VIVideoCodec.auto.

Relationships

Inherits From: NSObject

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