RTMPSharedObject
public actor RTMPSharedObject
The RTMPSharedObject class is used to read and write data on a server.
-
Returns a reference to a shared object on a server.
Declaration
Swift
public static func getRemote(withName: String, remotePath: String, persistence: Bool) -> RTMPSharedObject -
The AMF object encoding type.
Declaration
Swift
public let objectEncoding: RTMPObjectEncoding -
The current data storage.
Declaration
Swift
public private(set) var data: AMFObject { get } -
setProperty(_:Asynchronous_: ) Updates the value of a property in shared object.
Declaration
Swift
public func setProperty(_ name: String, _ value: (any Sendable)?) async -
connect(_:Asynchronous) Connects to a remove shared object on a server.
Declaration
Swift
public func connect(_ rtmpConnection: RTMPConnection) async -
clear()AsynchronousPurges all of the data.
Declaration
Swift
public func clear() async -
close()AsynchronousCloses the connection a server.
Declaration
Swift
public func close() async