CameraRecordingSettings
public protocol CameraRecordingSettings : AnyObject
Camera recording setting.
Allows to configure the camera recording mode and parameters, such as:
- Recording resolution,
- Recording framerate,
- Hyperalpse value for hyperlapse mode.
-
Tells if a setting value has been changed and is waiting for change confirmation.
Declaration
Swift
var updating: Bool { get }
-
Supported recording modes.
Declaration
Swift
var supportedModes: Set<CameraRecordingMode> { get }
-
Supported recording resolutions in the current mode.
Declaration
Swift
var supportedResolutions: Set<CameraRecordingResolution> { get }
-
Supported recording resolutions in the current mode.
Declaration
Swift
var supportedFramerates: Set<CameraRecordingFramerate> { get }
-
Supported Hyperlapse values when mode is
hyperlapse
.Declaration
Swift
var supportedHyperlapseValues: Set<CameraHyperlapseValue> { get }
-
Recording mode.
Declaration
Swift
var mode: CameraRecordingMode { get set }
-
Recording resolution.
Declaration
Swift
var resolution: CameraRecordingResolution { get set }
-
Recording framerate.
Declaration
Swift
var framerate: CameraRecordingFramerate { get set }
-
Hyperlapse values when mode is
hyperlapse
.Declaration
Swift
var hyperlapseValue: CameraHyperlapseValue { get set }
-
Whether HDR is available in the current mode, resolution and framerate.
Declaration
Swift
var hdrAvailable: Bool { get }
-
Recoding bitrate for current configuration, in bit/s. Zero if unknown.
Declaration
Swift
var bitrate: UInt { get }
-
Gets supported recording resolutions for a specific recording mode.
Declaration
Swift
func supportedResolutions(forMode mode: CameraRecordingMode) -> Set<CameraRecordingResolution>
Parameters
mode
the recording mode
Return Value
supported recording resolutions for the mode
-
Gets supported recording framerates for a specific recording mode and resolution.
Declaration
Swift
func supportedFramerates(forMode mode: CameraRecordingMode, resolution: CameraRecordingResolution) -> Set<CameraRecordingFramerate>
Parameters
mode
the recording mode
resolution
the recording resolution
Return Value
supported recording resolutions for the mode and resolution
-
Tells whether HDR is available for specific mode, framerate and resolution.
Declaration
Swift
func hdrAvailable( forMode mode: CameraRecordingMode, resolution: CameraRecordingResolution, framerate: CameraRecordingFramerate) -> Bool
Parameters
mode
the recording mode
resolution
the recording resolution
framerate
the recording framerate
Return Value
true
if hdr is available in the given mode, resolution and framerate -
Sets recording mode, resolution, framerate and hyperlase values.
Declaration
Swift
func set(mode: CameraRecordingMode, resolution: CameraRecordingResolution, framerate: CameraRecordingFramerate, hyperlapseValue: CameraHyperlapseValue?)
Parameters
mode
requested mode
resolution
requested resolution
framerate
requested framerate
hyperlapseValue
requested hyperlapse value when mode is
hyperlapse