SIGN UP

VICameraManager

VICameraManager

Methods

- (NSArray<AVCaptureDevice *> *)captureDevices

Get list of available capture devices that support video capture.

Returns

  • Return:

    NSArray<AVCaptureDevice *> *

    List of available capture devices.

- (void)changeCaptureFormat:(AVCaptureDeviceFormat *)format

Change video format (resolution) to be sent to remote participant. Default video format 640x480.

Parameters

  • format:

    AVCaptureDeviceFormat *

    New video format.

- (void)setSupportedDeviceOrientationForIPhone:(VISupportedDeviceOrientation)iPhoneOrientationMask
                                          iPad:(VISupportedDeviceOrientation)iPadOrientationMask

Sets supported orientation for all devices.

Parameters

+ (instancetype)sharedCameraManager

Obtain Camera manager instance.

Returns

  • Return:

    instancetype

    Manager instance.

- (NSArray<AVCaptureDeviceFormat *> *)supportedFormatsForDevice:(AVCaptureDevice *)device

Get list of formats(resolutions) that are supported by requested device.

Parameters

  • device:

    AVCaptureDevice *

    Capture device to get its formats.

Returns

  • Return:

    NSArray<AVCaptureDeviceFormat *> *

    List of formats.

Properties

@property (nonatomic, assign) VISupportedDeviceOrientation iPadOrientationMask

Property sets supported orientations for tablets. Defaults to VISupportedDeviceOrientationAll.

@property (nonatomic, assign) VISupportedDeviceOrientation iPhoneOrientationMask

Property sets supported orientations for phones. Defaults to VISupportedDeviceOrientationAll.

@property (nonatomic, assign) BOOL shouldMirrorFrontCamera

Boolean value indicating if front camera preview should be mirrored. Defaults to YES.

@property (nonatomic, assign) BOOL useBackCamera

Boolean value indicating if back camera should be used.

@property (nonatomic, weak) id<VIVideoPreprocessDelegate> videoPreprocessDelegate

Video preprocessing delegate.