SRTConnection
public actor SRTConnection : NetworkConnection
An actor that provides the interface to control a two-way SRT connection.
-
The error domain codes.
See moreDeclaration
Swift
public enum Error : Swift.Error
-
The SRT Library version
Declaration
Swift
public static let version: String
-
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
AsynchronousThe SRT’s performance data.
Declaration
Swift
public var performanceData: SRTPerformanceData? { get async }
-
Creates an object.
Declaration
Swift
public init()
-
open(_:
Asynchronousmode: ) Open a two-way connection to an application on SRT Server.
Declaration
Swift
public func open(_ uri: URL?, mode: SRTMode = .caller) async throws
-
close()
AsynchronousCloses the connection from the server.
Declaration
Swift
public func close() async throws