LiveKit Swift Client SDK Documentation

Class Video​Publish​Options

@objc
public class VideoPublishOptions: NSObject, PublishOptions  
%613 VideoPublishOptions VideoPublishOptions PublishOptions PublishOptions VideoPublishOptions->PublishOptions NSObject NSObject VideoPublishOptions->NSObject

Conforms To

PublishOptions
NSObject

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

@objc
    public let name: String? 

encoding

@objc
    public let encoding: VideoEncoding? 

preferred encoding parameters

screen​Share​Encoding

@objc
    public let screenShareEncoding: VideoEncoding? 

encoding parameters for for screen share

simulcast

@objc
    public let simulcast: Bool

true to enable simulcasting, publishes three tracks at different sizes

simulcast​Layers

@objc
    public let simulcastLayers: [VideoParameters] 

screen​Share​Simulcast​Layers

@objc
    public let screenShareSimulcastLayers: [VideoParameters] 

hash

public override var hash: Int  

Methods

is​Equal(_:​)

public override func isEqual(_ object: Any?) -> Bool