Rate this page:

VICameraManager

VICameraManager

Methods

captureDevices

Copy URL
- (

NSArray<AVCaptureDevice *> *

)captureDevices

Gets a list of available capture devices that support video capture.

Returns

  • type:

    NSArray<AVCaptureDevice *> *

changeCaptureFormat:

Copy URL
- (

void

)changeCaptureFormat:(

AVCaptureDeviceFormat *

)format

Changes the video format (resolution) to be sent to a remote participant. Default video format is 640x480 for video calls and 352x288 for conference calls.

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

Static
Copy URL
+ (

instancetype

)sharedCameraManager

Obtains camera manager's instance.

Returns

  • type:

    instancetype

supportedFormatsForDevice:

Copy URL
- (

NSArray<AVCaptureDeviceFormat *> *

)supportedFormatsForDevice:(

AVCaptureDevice *

)device

Gets a 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

Sets supported orientations for tablets. The default value is VISupportedDeviceOrientationAll.

iPhoneOrientationMask

Copy URL
@property (assign, nonatomic) 

VISupportedDeviceOrientation

iPhoneOrientationMask

Sets supported orientations for phones. The default value is VISupportedDeviceOrientationAll.

shouldMirrorFrontCamera

Copy URL
@property (assign, nonatomic) 

BOOL

shouldMirrorFrontCamera

Whether to mirror the front camera preview. The default value is YES.

Returns

  • type:

    BOOL

useBackCamera

Copy URL
@property (assign, nonatomic) 

BOOL

useBackCamera

Whether to use the back camera.

Returns

  • type:

    BOOL

videoPreprocessDelegate

Copy URL
@property (weak, nullable, nonatomic) 

id<VIVideoPreprocessDelegate>

videoPreprocessDelegate

Video preprocessing delegate.