SRTConnection

public final class SRTConnection : NSObject

The SRTConnection class create a two-way SRT connection.

  • The error comain codes.

    See more

    Declaration

    Swift

    public enum Error : Swift.Error
  • The SRT Library version

    Declaration

    Swift

    public static let version: String
  • uri

    The URI passed to the SRTConnection.connect() method.

    Declaration

    Swift

    public private(set) var uri: URL? { get }
  • This instance connect to server(true) or not(false)

    Declaration

    Swift

    @objc
    public private(set) dynamic var connected: Bool { get }
  • The SRT’s performance data.

    Declaration

    Swift

    public var performanceData: SRTPerformanceData? { get }
  • Creates an object.

    Declaration

    Swift

    override public init()
  • open(_:mode:) Asynchronous

    Open a two-way connection to an application on SRT Server.

    Declaration

    Swift

    public func open(_ uri: URL?, mode: SRTMode = .caller) async throws
  • close() Asynchronous

    Closes the connection from the server.

    Declaration

    Swift

    public func close() async