LiveKit Swift Client SDK Documentation

Structure Video​Publish​Options

public struct VideoPublishOptions: PublishOptions  
%451 VideoPublishOptions VideoPublishOptions PublishOptions PublishOptions VideoPublishOptions->PublishOptions

Conforms To

PublishOptions

Initializers

init(name:​encoding:​screen​Share​Encoding:​simulcast:​simulcast​Layers:​screen​Share​Simulcast​Layers:​)

public init(name: String? = nil,
                encoding: VideoEncoding? = nil,
                screenShareEncoding: VideoEncoding? = nil,
                simulcast: Bool = true,
                simulcastLayers: [VideoParameters] = [],
                screenShareSimulcastLayers: [VideoParameters] = [])  

Properties

name

public let name: String? 

encoding

public let encoding: VideoEncoding? 

preferred encoding parameters

screen​Share​Encoding

public let screenShareEncoding: VideoEncoding? 

encoding parameters for for screen share

simulcast

public let simulcast: Bool

true to enable simulcasting, publishes three tracks at different sizes

simulcast​Layers

public let simulcastLayers: [VideoParameters] 

screen​Share​Simulcast​Layers

public let screenShareSimulcastLayers: [VideoParameters]