> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# VIBroadcastSettings

Brodcast settings with additional parameters.

@objc class VIBroadcastSettings

## Initializers

### init(localVideoStream:customData:extraHeaders:preferredVideoCodec:)

@objc init(\
    localVideoStream: [VILocalVideoStream](/api-reference/iossdk/calls/vilocalvideostream),\
    customData: String? = nil,\
    extraHeaders: \[String : String]? = nil,\
    preferredVideoCodec: [VIVideoCodec](/api-reference/iossdk/calls/vivideocodec) = .auto\
)

Creates an instance.

**Parameters**

**localVideoStream** [VILocalVideoStream](/api-reference/iossdk/calls/vilocalvideostream)

Local video stream Local video stream should be created with a custom video source that is initialized via the [init(forBroadcast:frameSize:)](/api-reference/iossdk/calls/vicustomvideosource#symbol-a94c843f3c557c8a) 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](/api-reference/iossdk/calls/vivideocodec)

Preferred video codec for a brodcast. The default value is [VIVideoCodec.auto](/api-reference/iossdk/calls/vivideocodec#symbol-5b8401b82eef932d).

## 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](https://voximplant.com/docs/references/voxengine/appevents#callalerting) event or [Call History](https://voximplant.com/docs/references/httpapi/history#getcallhistory) via Management API.

Maximum size is 200 bytes. Use the [sendMessage(\_:)](/api-reference/iossdk/calls/vicall#symbol-00b3ae0590e5710f) method to pass a string over the limit; in order to pass a large data use [media_session_access_url](https://voximplant.com/docs/references/httpapi/scenarios#startscenarios) 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](/api-reference/iossdk/calls/vilocalvideostream)

Local video stream.

### preferredVideoCodec

@objc var preferredVideoCodec: [VIVideoCodec](/api-reference/iossdk/calls/vivideocodec)

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

The default codec is [VIVideoCodec.auto](/api-reference/iossdk/calls/vivideocodec#symbol-5b8401b82eef932d).

## Relationships

**Inherits From:** NSObject

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