SRTConnection
public final class SRTConnection : NSObject
The SRTConnection class create a two-way SRT connection.
-
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
@objc public private(set) dynamic var connected: Bool { get }
-
The SRT’s performance data.
Declaration
Swift
public var performanceData: SRTPerformanceData { get }
-
Creates a new SRTConnection.
Declaration
Swift
override public init()
-
Open a two-way connection to an application on SRT Server.
Declaration
Swift
public func open(_ uri: URL?, mode: SRTMode = .caller)
-
Closes the connection from the server.
Declaration
Swift
public func close()