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
VideoSinkmay render, store, process, and forward the frame, among other applications.Declaration
Swift
func onVideoFrameReceived(frame: VideoFrame)Parameters
frameNew video frame to consume
VideoSink Protocol Reference