Camera2RecordingState
public enum Camera2RecordingState : Equatable, CustomStringConvertible
Camera recording state.
-
Recording is stopped and ready to be started.
- latestSavedMediaId: identifier of latest saved media, or
nil
if no media was saved since connection
Declaration
Swift
case stopped(latestSavedMediaId: String?)
- latestSavedMediaId: identifier of latest saved media, or
-
Recording is starting. This state is entered from
stopped
after a call toCamera2Recording.start()
.Declaration
Swift
case starting
-
Recording is started.
- startTimeOnSystemClock: time when the capture did start, in seconds in the local device’s default clock reference; may be negative if the capture started before local device boot
- duration: closure allowing to retrieve capture duration so far
- videoBitrate: video recording bitrate, in bits per second
- mediaStorage: destination storage for produced media,
nil
if unknown
Declaration
Swift
case started(startTimeOnSystemClock: Double, duration: () -> TimeInterval, videoBitrate: UInt, mediaStorage: StorageType?)
-
Recording is stopping.
- reason: reason why the recording is stopping
- savedMediaId: identifier of saved media if any, otherwise
nil
Declaration
Swift
case stopping(reason: StopReason, savedMediaId: String?)
-
Recording stop reason.
See moreDeclaration
Swift
public enum StopReason : String, CustomStringConvertible
-
Equatable.
Declaration
Swift
public static func == (lhs: Camera2RecordingState, rhs: Camera2RecordingState) -> Bool
-
Debug description.
Declaration
Swift
public var description: String { get }
-
Whether recording can be started.
Declaration
Swift
public var canStart: Bool { get }
-
Whether recording can be stopped.
Declaration
Swift
public var canStop: Bool { get }