SinchVideoController

public final class SinchVideoController

The SinchVideoController provides methods for controlling video related functionality, including rendering views and observing/modifying local and remote video frames.

  • Indicates the capture device position (front-facing or back-facing+ camera) currently in use. This property may be set to to change which capture device should be used.

    Declaration

    Swift

    public var captureDevicePosition: AVCaptureDevice.Position { get set }
  • Describes states the idle timer can be in

    See more

    Declaration

    Swift

    @frozen
    public enum IdleTimerState : String, CaseIterable
  • Automatically set/unset UIApplication.idleTimerDisabled when video capturing is started / stopped. Default is true

    Declaration

    Swift

    public var idleTimerOnCapturing: IdleTimerState { get set }
  • View into which the remote peer video stream is rendered.

    Use UIView.contentMode to control how the video frame is rendered. (Note that only UIViewContentModeScaleAspectFit and UIViewContentModeScaleAspectFill will be respected)

    Use UIView.backgroundColor to specify color for potential “empty” regions when UIViewContentModeScaleAspectFit is used.

    See also

    SinchUIViewFullscreenAdditions (SINUIView+Fullscreen.h) for helpers to toggle full screen.

    Declaration

    Swift

    public var remoteView: UIView { get }
  • View into which the locally captured video stream is rendered.

    Use UIView.contentMode to control how the video frame is rendered. (Note that only UIViewContentModeScaleAspectFit and UIViewContentModeScaleAspectFill will be respected)

    Use UIView.backgroundColor to specify color for potential “empty” regions when UIViewContentModeScaleAspectFit is used.

    See also

    SinchUIViewFullscreenAdditions (SINUIView+Fullscreen.h) for helpers to toggle full screen.

    Declaration

    Swift

    public var localView: UIView { get }
  • The delegate that receives locally captured video frames before they are encoded and sent to the remote peer(s), allowing them to be observed or modified.

    Set to nil to remove a previously assigned delegate.

    Declaration

    Swift

    public weak var localVideoFrameDelegate: SinchLocalVideoFrameDelegate? { get set }
  • The delegate that receives decoded remote video frames before they are rendered, allowing them to be observed or modified.

    Set to nil to remove a previously assigned delegate.

    Declaration

    Swift

    public weak var remoteVideoFrameDelegate: SinchRemoteVideoFrameDelegate? { get set }