CBLCameraVideoRecording
Objective-C
@protocol CBLCameraVideoRecording <NSObject>
Swift
protocol CameraVideoRecording : NSObjectProtocol
Video recording methods.
-
Returns
YES
if the camera is currently recording video, otherwiseNO
. Will update if video recording is started or stopped using the camera’s on-body controls, or if video recording stopped due to the card being full etc.Can be observed with Key-Value Observing.
Declaration
Objective-C
@property (nonatomic, readonly) BOOL isRecordingVideo;
Swift
var isRecordingVideo: Bool { get }
-
If available, returns the current value of the camera’s video recording timer. Can be observed with Key-Value Observing.
The returned value is immutable — a new value will be created when the timer updates.
Will be
nil
when the camera isn’t recording video.Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) id<CBLVideoTimerValue> currentVideoTimerValue;
Swift
@NSCopying var currentVideoTimerValue: (any VideoTimerValue)? { get }
-
Start video recording.
Will fail if the camera is already recording video, the camera isn’t in a mode that allows video recording, or if some other condition prevents video recording to start (not enough space on the camera’s storage card, etc).
Declaration
Objective-C
- (void)startVideoRecording: (nullable CBLErrorableOperationCallback)completionHandler;
Swift
func startVideoRecording() async throws
-
End video recording.
Declaration
Objective-C
- (void)endVideoRecording: (nullable CBLErrorableOperationCallback)completionHandler;
Swift
func endVideoRecording() async throws