VideoRecorderStatus
public class VideoRecorderStatus : VideoStatus
Observable class provides status updates for the video recorder
Properties of this class are updated by the VideoRecorderProtocol methods.
Provides the following published observable properties:
isInitialized- is the recorder initializedisRecording- is the recorder currently recordingduration- duration of the current recordingorientation- current orientation of the video recorderzoom- current zoom level of the video recorder
Note
You can get the current object from theVideoRecorderProtocol.status prop
-
Undocumented
Declaration
Swift
public override init() -
is the recorder initialized if not then you should call
VideoRerderProtocol.initVideoRecorder()functionDeclaration
Swift
@Published public var isInitialized: Bool { get set } -
duration of the current recording.
The duration will be updated every second during the recording. It will be reset to 0 when the recording is stopped.
Declaration
Swift
@Published public var duration: TimeInterval { get set } -
Current orientation of the video recorder
Use
VideoRecorderProtocol.changeOrientation()to adjust it according to the phone orientation. See method docs for details.Declaration
Swift
@Published public var orientation: AVCaptureVideoOrientation { get set } -
Current zoom level of the video recorder
Declaration
Swift
@Published public var zoom: CGFloat { get set } -
List of full videos recorded
Local path and info for the video recorded in this session. Contains multiple files if there were multiple recordings in the same session or chunked video recording was used.
Note
This list will be empty ifkeepFullVideosis set to false in the sessionDeclaration
Swift
@Published public var fullVideos: [VideoInfo] { get set }
VideoRecorderStatus Class Reference