Rate this page:

VICameraManager

VICameraManager

Methods

captureDevices

Copy URL
- (

NSArray<AVCaptureDevice *> *

)captureDevices

Get list of available capture devices that support video capture.

Returns

  • type:

    NSArray<AVCaptureDevice *> *

changeCaptureFormat:

Copy URL
- (

void

)changeCaptureFormat:(

AVCaptureDeviceFormat *

)format

Change video format (resolution) to be sent to remote participant. Default video format 640x480 for video call and 352x288 for conference call.

Parameters

  • format:

    AVCaptureDeviceFormat *

    New video format.

Returns

  • type:

    void

setSupportedDeviceOrientationForIPhone:iPad:

Copy URL
- (

void

)setSupportedDeviceOrientationForIPhone:(

VISupportedDeviceOrientation

)iPhoneOrientationMask
iPad:(

VISupportedDeviceOrientation

)iPadOrientationMask

Sets supported orientation for all devices.

Parameters

Returns

  • type:

    void

sharedCameraManager

Copy URL
+ (

instancetype

)sharedCameraManager

Obtain Camera manager instance.

Returns

  • type:

    instancetype

supportedFormatsForDevice:

Copy URL
- (

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

  • type:

    NSArray<AVCaptureDeviceFormat *> *

Props

iPadOrientationMask

Copy URL
@property (assign, nonatomic) 

VISupportedDeviceOrientation

iPadOrientationMask

The property sets supported orientations for tablets. Defaults to VISupportedDeviceOrientationAll.

iPhoneOrientationMask

Copy URL
@property (assign, nonatomic) 

VISupportedDeviceOrientation

iPhoneOrientationMask

The property sets supported orientations for phones. Defaults to VISupportedDeviceOrientationAll.

shouldMirrorFrontCamera

Copy URL
@property (assign, nonatomic) 

BOOL

shouldMirrorFrontCamera

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

Returns

  • type:

    BOOL

useBackCamera

Copy URL
@property (assign, nonatomic) 

BOOL

useBackCamera

A Boolean value indicating if back camera should be used.

Returns

  • type:

    BOOL

videoPreprocessDelegate

Copy URL
@property (weak, nullable, nonatomic) 

id<VIVideoPreprocessDelegate>

videoPreprocessDelegate

A video preprocessing delegate.