VideoSource

@objc
public protocol VideoSource

VideoSource is an interface for sources which produce video frames, and can send to a VideoSink. Implementations can be passed to the AudioVideoFacade to be used as the video source sent to remote participlants

  • Content hint for downstream processing.

    Declaration

    Swift

    var videoContentHint: VideoContentHint { get set }
  • Add a video sink which will immediately begin to receive new frames.

    Multiple sinks can be added to a single VideoSource to allow forking of video frames, e.g. to send to both local preview and AmazonChimeSDKMedia framework (i.e. for encoding) at the same time.

    Declaration

    Swift

    func addVideoSink(sink: VideoSink)

    Parameters

    sink

    New video sink

  • Remove a video sink which will no longer receive new frames on return.

    Declaration

    Swift

    func removeVideoSink(sink: VideoSink)

    Parameters

    sink

    Video sink to remove