SRTConnection

public actor SRTConnection : NetworkConnection

An actor that provides the interface to control a two-way SRT connection.

  • The error domain 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

    @Published
    public private(set) var connected: Bool { get set }
  • performanceData Asynchronous

    The SRT’s performance data.

    Declaration

    Swift

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

    Declaration

    Swift

    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 throws