Actors
The following actors are available globally.
- 
                  
                  
An object that provides the interface to control audio playback.
See moreDeclaration
Swift
public final actor AudioPlayer - 
                  
                  
An actor that provides a stream playback feature.
See moreDeclaration
 - 
                  
                  
An actor provides an algorithm that focuses on video bitrate control.
See moreDeclaration
Swift
public final actor HKStreamVideoAdaptiveBitRateStrategy : HKStreamBitRateStrategy - 
                  
                  
An actor represents video and audio recorder.
This actor is compatible with both HKStreamOutput and MediaMixerOutput. This means it can record the output from MediaMixer in addition to HKStream.
// An example of recording MediaMixer. let recorder = HKStreamRecorder() let mixer = MediaMixer() mixer.addOutput(recorder)
See more// An example of recording streaming. let recorder = HKStreamRecorder() let mixer = MediaMixer() let stream = RTMPStream() mixer.addOutput(stream) stream.addOutput(recorder)Declaration
Swift
public actor HKStreamRecorderextension HKStreamRecorder: HKStreamOutputextension HKStreamRecorder: MediaMixerOutput - 
                  
                  
An actor that mixies audio and video for streaming.
See moreDeclaration
 - 
                  
                  
An objec thatt provides the RTMPConnection, SRTConnection’s monitoring events.
See moreDeclaration
 - 
                  
                  
The RTMPConneciton class create a two-way RTMP connection.
See moreDeclaration
Swift
public actor RTMPConnection : NetworkConnection - 
                  
                  
The RTMPSharedObject class is used to read and write data on a server.
See moreDeclaration
Swift
public actor RTMPSharedObject - 
                  
                  
An object that provides the interface to control a one-way channel over an RTMPConnection.
See moreDeclaration
 - 
                  
                  
A singleton actor whose executor screen object rendering.
See moreDeclaration
Swift
@globalActor public actor ScreenActor - 
                  
                  
An actor that provides the interface to control a two-way SRT connection.
See moreDeclaration
Swift
public actor SRTConnection : NetworkConnection - 
                  
                  
An actor that provides the interface to control a one-way channel over a SRTConnection.
See moreDeclaration
 
        Actors  Reference