Classes

The following classes are available globally.

  • An object that provides the interface to control the AVCaptureDevice’s transport behavior.

    See more

    Declaration

    Swift

    @available(tvOS 17.0, *)
    public final class IOAudioCaptureUnit : IOCaptureUnit
  • The IOStream class is the foundation of a RTMPStream.

    See more

    Declaration

    Swift

    open class IOStream : NSObject
  • The IOStreamBitRateStrategy class provides a no operative bitrate storategy.

    See more

    Declaration

    Swift

    public final class IOStreamBitRateStrategy : IOStreamBitRateStrategyConvertible
  • The IOStreamVideoAdaptiveBitRateStrategy class provides an algorithm that focuses on video bitrate control.

    See more

    Declaration

    Swift

    public final class IOStreamVideoAdaptiveBitRateStrategy : IOStreamBitRateStrategyConvertible
  • The IOStreamRecorder class represents video and audio recorder.

    See more

    Declaration

    Swift

    public final class IOStreamRecorder
    extension IOStreamRecorder: IOStreamObserver
    extension IOStreamRecorder: Running
  • An object that provides the interface to control the AVCaptureDevice’s transport behavior.

    See more

    Declaration

    Swift

    @available(tvOS 17.0, *)
    public final class IOVideoCaptureUnit : IOCaptureUnit
  • A view that displays a video content of a NetStream object which uses Metal api.

    See more

    Declaration

    Swift

    public class MTHKView : MTKView
    extension MTHKView: IOStreamView
  • A view that displays a video content of a NetStream object which uses AVSampleBufferDisplayLayer api.

    See more
  • A view that displays a video content of a NetStream object which uses AVSampleBufferDisplayLayer api.

    See more

    Declaration

    Swift

    public class PiPHKView : NSView
    extension PiPHKView: IOStreamView
  • The TSReader class represents read MPEG-2 transport stream data.

    See more

    Declaration

    Swift

    public class TSReader<T> where T : TSReaderDelegate
  • The TSWriter class represents writes MPEG-2 transport stream data.

    See more

    Declaration

    Swift

    public final class TSWriter<T> where T : TSWriterDelegate
  • The NetClient class creates a two-way connection between a NetService.

    See more

    Declaration

    Swift

    public final class NetClient : NetSocket
  • The NetService class creates a two-way connection between a client and a server as a server.

    See more

    Declaration

    Swift

    open class NetService : NSObject
    extension NetService: NetServiceDelegate
    extension NetService: Running
  • The NetSocket class creates a two-way connection between a client and a server as a client. This class is wrapper for a InputStream and an OutputStream.

    See more

    Declaration

    Swift

    open class NetSocket : NSObject
    extension NetSocket: StreamDelegate
  • The Event interface is used to provide information.

    See more

    Declaration

    Swift

    public final class Event
    extension Event: CustomDebugStringConvertible
  • The EventDispatcher interface is in implementation which supports the DOM Event Model.

    See more

    Declaration

    Swift

    public class EventDispatcher : EventDispatcherConvertible
  • The RTMPResponder class provides to use handle RTMPConnection’s callback.

    See more

    Declaration

    Swift

    open class RTMPResponder
  • The RTMPConneciton class create a two-way RTMP connection.

    See more

    Declaration

    Swift

    public class RTMPConnection
    extension RTMPConnection: EventDispatcherConvertible
  • The RTMPSharedObject class is used to read and write data on a server.

    See more

    Declaration

    Swift

    public final class RTMPSharedObject : EventDispatcher
    extension RTMPSharedObject: CustomDebugStringConvertible
  • An object that provides the interface to control a one-way channel over a RtmpConnection.

    See more

    Declaration

    Swift

    open class RTMPStream : IOStream
    extension RTMPStream: EventDispatcherConvertible
  • An object that manages offscreen rendering a foundation.

    See more

    Declaration

    Swift

    public final class Screen : ScreenObjectContainerConvertible
    extension Screen: Running
  • The ScreenObject class is the abstract class for all objects that are rendered on the screen.

    See more

    Declaration

    Swift

    open class ScreenObject
    extension ScreenObject: Hashable
  • An object that manages offscreen rendering a cgImage source.

    See more

    Declaration

    Swift

    public final class ImageScreenObject : ScreenObject
  • An object that manages offscreen rendering a video track source.

    See more

    Declaration

    Swift

    public final class VideoTrackScreenObject : ScreenObject, ChromaKeyProcessable
  • An object that manages offscreen rendering a text source.

    See more

    Declaration

    Swift

    public final class TextScreenObject : ScreenObject
  • An object that manages offscreen rendering an asset resource.

    See more

    Declaration

    Swift

    public final class AssetScreenObject : ScreenObject, ChromaKeyProcessable
  • An object represents a collection of screen objects.

    See more

    Declaration

    Swift

    public class ScreenObjectContainer : ScreenObject, ScreenObjectContainerConvertible
  • An object that apply a video effect.

    Example code:

    final class MonochromeEffect: VideoEffect {
        let filter: CIFilter? = CIFilter(name: "CIColorMonochrome")
    
        override func execute(_ image: CIImage, info: CMSampleBuffer?) -> CIImage {
            guard let filter: CIFilter = filter else {
                return image
            }
            filter.setValue(image, forKey: "inputImage")
            filter.setValue(CIColor(red: 0.75, green: 0.75, blue: 0.75), forKey: "inputColor")
            filter.setValue(1.0, forKey: "inputIntensity")
            return filter.outputImage ?? image
        }
    }
    
    See more

    Declaration

    Swift

    open class VideoEffect
  • This class allows to rotate image buffers that are provided by ReplayKit. The buffers arrive in portrait orientation and contain buffer-level attachment that allow to determine the target resolution and rotate the buffer accordingly.

    See more

    Declaration

    Swift

    @available(iOS 16.0, tvOS 16.0, macOS 13.0, *)
    public class VideoRotator
  • The ByteArray class provides methods and properties the reading or writing with binary data.

    See more

    Declaration

    Swift

    public class ByteArray : ByteArrayConvertible
    extension ByteArray: CustomDebugStringConvertible
  • The InstanceHolder class provides a shared instance memory management.

    See more

    Declaration

    Swift

    public class InstanceHolder<T> where T : Equatable
  • The SRTConnection class create a two-way SRT connection.

    See more

    Declaration

    Swift

    public final class SRTConnection : NSObject
  • An object that provides the interface to control a one-way channel over a SRTConnection.

    See more

    Declaration

    Swift

    public final class SRTStream : IOStream