WOWZCamera
IntroductionUse the WOWZCamera class to access and control camera devices. To view a list of all cameras, however, use the cameras property in the WOWZCameraPreview class. Methods
initWithCaptureDevice:- (nonnull instancetype) initWithCaptureDevice:(nonnull AVCaptureDevice *)captureDevice; ParametersReturn ValueAn instance of WOWZCamera. DiscussionInitializes a WOWZCamera from a specified AVCaptureDevice. isBack- (BOOL) isBack; Return ValueYes if this is the back-facing camera, no otherwise. DiscussionIndicates whether the back-facing camera is being used. isFront- (BOOL) isFront; Return ValueYes if this is the front-facing camera, no otherwise. DiscussionIndicates whether the front-facing camera is being used. setExposureMode:exposurePoint:- (void) setExposureMode:(WOWZCameraExposureMode)exposureMode exposurePoint:(CGPoint)point; ParametersDiscussionSets the camera's exposure mode based on a specified point of interest. setFocusMode:focusPoint:- (void) setFocusMode:(WOWZCameraFocusMode)focusMode focusPoint:(CGPoint)point; ParametersDiscussionSets the camera's focus mode based on a specified point of interest. supportsExposureMode:- (BOOL) supportsExposureMode:(WOWZCameraExposureMode)mode; ParametersReturn ValueYes if the camera supports the exposure mode, no otherwise. DiscussionIndicates whether the camera supports the specified exposure mode. supportsFocusMode:- (BOOL) supportsFocusMode:(WOWZCameraFocusMode)mode; ParametersReturn ValueYes if the camera supports the focus mode, no otherwise. DiscussionIndicates whether the camera supports the specified focus mode. supportsWidth:- (BOOL) supportsWidth:(NSUInteger)width; ParametersReturn ValueYes if the camera supports the width, no otherwise. DiscussionIndicates whether the camera supports the specified frame width. TypedefsNS_ENUMtypedef NS_ENUM(NSUInteger, WOWZCameraDirection) { WOWZCameraDirectionBack = 0, WOWZCameraDirectionFront }; Constants
DiscussionA camera direction, either front or back. See Also NS_ENUMtypedef NS_ENUM(NSUInteger, WOWZCameraFocusMode) { WOWZCameraFocusModeLocked = 0, WOWZCameraFocusModeAuto, WOWZCameraFocusModeContinuous }; Constants
DiscussionA camera focus mode. See Also NS_ENUMtypedef NS_ENUM(NSUInteger, WOWZCameraExposureMode) { WOWZCameraExposureModeLocked = 0, WOWZCameraExposureModeAuto, WOWZCameraExposureModeContinuous }; Constants
DiscussionA camera exposure mode. See Also WOWZCameraDirectiontypedef NS_ENUM(NSUInteger, WOWZCameraDirection) { WOWZCameraDirectionBack = 0, WOWZCameraDirectionFront }; Constants
DiscussionA camera direction, either front or back. See Also WOWZCameraExposureModetypedef NS_ENUM(NSUInteger, WOWZCameraExposureMode) { WOWZCameraExposureModeLocked = 0, WOWZCameraExposureModeAuto, WOWZCameraExposureModeContinuous }; Constants
DiscussionA camera exposure mode. See Also WOWZCameraFocusModetypedef NS_ENUM(NSUInteger, WOWZCameraFocusMode) { WOWZCameraFocusModeLocked = 0, WOWZCameraFocusModeAuto, WOWZCameraFocusModeContinuous }; Constants
DiscussionA camera focus mode. See Also Properties
cameraId@property (readonly) NSUInteger cameraId; DiscussionA unique identifier for the camera. direction@property (readonly) WOWZCameraDirection direction; DiscussionThe facing direction of the camera. exposureMode@property (nonatomic) WOWZCameraExposureMode exposureMode; DiscussionThe camera's exposure mode. focusMode@property (nonatomic) WOWZCameraFocusMode focusMode; DiscussionThe camera's focus mode. frameSizes@property (nonatomic, nonnull, readonly) NSArray<NSValue *> *frameSizes; DiscussionThe supported frame sizes for the camera, expressed as an array of CGSize values. hasTorch@property (nonatomic, readonly) BOOL hasTorch; DiscussionIndicates whether the camera has a flash. iOSCaptureDevice@property (nonatomic, readonly, nonnull) AVCaptureDevice *iOSCaptureDevice; DiscussionThe AVCaptureDevice represented by this camera. supportedPresetConfigs@property (nonatomic, nonnull, readonly) NSArray<WOWZMediaConfig *> *supportedPresetConfigs; DiscussionThe supported WOWZMediaConfigs for the camera. torchOn@property (nonatomic, getter=isTorchOn) BOOL torchOn; DiscussionTurns the camera's flash on or off. |