Classes

The following classes are available globally.

  • A view that displays a video content of a NetStream object which uses AVCaptureVideoPreviewLayer.

    See more

    Declaration

    Swift

    public class HKView : UIView
    extension HKView: NetStreamDrawable
  • The NetStream class is the foundation of a RTMPStream, HTTPStream.

    See more

    Declaration

    Swift

    open class NetStream : NSObject
  • Undocumented

    See more

    Declaration

    Swift

    open class ScreenCaptureSession : NSObject, CaptureSessionConvertible
    extension ScreenCaptureSession: Running
  • The AudioCodec translate audio data to another format.

    See more

    Declaration

    Swift

    public class AudioCodec
    extension AudioCodec: Running
  • The VideoCodec class provides methods for encode or decode for video.

    See more

    Declaration

    Swift

    public class VideoCodec
    extension VideoCodec: Running
  • The FLVReader is used to read the contents of a FLV file.

    See more

    Declaration

    Swift

    public final class FLVReader
    extension FLVReader: IteratorProtocol
  • The HLSService class provide a simple HTTP Live Streaming service.

    See more

    Declaration

    Swift

    open class HLSService : HTTPService
  • The HTTPService class provide a lightweight HTTPServer.

    See more

    Declaration

    Swift

    open class HTTPService : NetService
  • The HTTPStream class represents an HLS playlist and .ts files.

    See more

    Declaration

    Swift

    open class HTTPStream : NetStream
  • An object that mixies audio and video for streaming.

    See more

    Declaration

    Swift

    public class AVMixer
    extension AVMixer: Running
  • The AVRecorder class represents video and audio recorder.

    See more

    Declaration

    Swift

    public class AVRecorder
    extension AVRecorder: Running
  • An object that apply an audio effect.

    See more

    Declaration

    Swift

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

    See more

    Declaration

    Swift

    public class PiPHKView : UIView
    extension PiPHKView: NetStreamDrawable
  • A view that displays a video content of a NetStream object which uses AVSampleBufferDisplayLayer api.

    See more

    Declaration

    Swift

  • 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 NetClient class creates a two-way connection between a NetService.

    See more

    Declaration

    Swift

    public final class NetClient : NetSocket
  • Undocumented

    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. This class is wrapper for a InputStream and an OutputStream.

    See more

    Declaration

    Swift

    open class NetSocket : NSObject
    extension NetSocket: StreamDelegate
  • flash.net.Responder for Swift

    See more

    Declaration

    Swift

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

    See more

    Declaration

    Swift

    open class RTMPConnection : EventDispatcher
  • flash.net.SharedObject for Swift

    See more

    Declaration

    Swift

    open 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 : NetStream
    extension RTMPStream: EventDispatcherConvertible
  • MPEG-2 TS (Transport Stream) Writer Foundation class

    See more

    Declaration

    Swift

    public class TSWriter : Running
    extension TSWriter: AudioCodecDelegate
    extension TSWriter: VideoCodecDelegate
  • The ByteArray class provides methods and properties the reading or writing with binary data.

    See more

    Declaration

    Swift

    open class ByteArray : ByteArrayConvertible
    extension ByteArray: CustomDebugStringConvertible
  • The Event interface is used to provide information.

    See more

    Declaration

    Swift

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

    See more

    Declaration

    Swift

    open class EventDispatcher : EventDispatcherConvertible
  • Undocumented

    See more

    Declaration

    Swift

    public class Setting<T, Key> : ExpressibleByDictionaryLiteral where T : AnyObject, Key : KeyPathRepresentable
    extension Setting: CustomDebugStringConvertible