SinchVideoController

public final class SinchVideoController : Synchronized

The SinchAudioController provides methods for controlling audio related functionality

  • 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 }
  • Set a callback for handling video frames for remote video streams.

    This callback can be used to process the video frame before it is rendered and displayed in a view.

    This callback can be invoked on any queue.

    Declaration

    Swift

    public func setRemoteVideoFrameCallback(_ callback: SinchVideoFrameCallback)

    Parameters

    callback

    The callback object that will receive frames.

  • Set a callback for listening to video frames captured from the local camera.

    This callback can be used to process the locally captured video frame before it is sent to the remote peer(s).

    This callback can be invoked on any queue.

    Declaration

    Swift

    public func setLocalVideoFrameCallback(_ callback: SinchVideoFrameCallback)

    Parameters

    callback

    The callback object that will receive frames.