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
    extension MTHKView: MTKViewDelegate
  • A view that displays a video content of a NetStream object which uses AVSampleBufferDisplayLayer api.

    See more

    Declaration

    Swift

  • 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
  • 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 : NSObject
  • The TSReader class represents read MPEG-2 transport stream data.

    See more

    Declaration

    Swift

    public class TSReader
  • The TSWriter class represents writes MPEG-2 transport stream data.

    See more

    Declaration

    Swift

    public final class TSWriter
    extension TSWriter: IOMuxer
    extension TSWriter: Running
  • 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 : EventDispatcher
  • 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
  • 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 for writing interpolated string messages to srt logging system.

    See more

    Declaration

    Swift

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

    See more

    Declaration

    Swift

    public final class SRTStream : IOStream
    extension SRTStream: TSWriterDelegate
    extension SRTStream: TSReaderDelegate