SRTConnection
public final class SRTConnection : NSObject
The SRTConnection class create a two-way SRT connection.
-
The error comain 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
@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(_:
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