VideoSink

@objc
public protocol VideoSink

A VideoSink consumes video frames, typically from a VideoSource. It may process, fork, or render these frames. Typically connected via video VideoSource.addVideoSink and disconnected via VideoSource.removeVideoSink

  • Receive a video frame from some upstream source. The VideoSink may render, store, process, and forward the frame, among other applications.

    Declaration

    Swift

    func onVideoFrameReceived(frame: VideoFrame)

    Parameters

    frame

    New video frame to consume