VICameraManager
VICameraManager
Methods
captureDevices
- (NSArray<AVCaptureDevice *> *
)captureDevices
Gets a list of available capture devices that support video capture.
Returns
type:
NSArray<AVCaptureDevice *> *
changeCaptureFormat:
- (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:
- (void
)setSupportedDeviceOrientationForIPhone:()iPhoneOrientationMask
iPad:()iPadOrientationMask
Sets supported orientation for all devices.
Parameters
iPhoneOrientationMask:
supported orientations for phones. The default value is VISupportedDeviceOrientationAll
iPadOrientationMask:
supported orientations for tablets. The default value is VISupportedDeviceOrientationAll
Returns
type:
void
supportedFormatsForDevice:
- (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
@property (assign, nonatomic) iPadOrientationMask
Sets supported orientations for tablets. The default value is VISupportedDeviceOrientationAll.
Returns
iPhoneOrientationMask
@property (assign, nonatomic) iPhoneOrientationMask
Sets supported orientations for phones. The default value is VISupportedDeviceOrientationAll.
Returns
shouldMirrorFrontCamera
@property (assign, nonatomic) BOOL
shouldMirrorFrontCamera
Whether to mirror the front camera preview. The default value is YES.
Returns
type:
BOOL
useBackCamera
@property (assign, nonatomic) BOOL
useBackCamera
Whether to use the back camera.
Returns
type:
BOOL
videoPreprocessDelegate
@property (weak, nullable, nonatomic) videoPreprocessDelegate
Video preprocessing delegate.
Returns
type: