feat: Add width and height to VideoFile output (#2281)
* feat: Add `width` and `height` to `VideoFile` output * Format
This commit is contained in:
@@ -61,7 +61,8 @@ extension CameraSession {
|
||||
if status == .completed {
|
||||
// Recording was successfully saved
|
||||
let video = Video(path: recordingSession.url.absoluteString,
|
||||
duration: recordingSession.duration)
|
||||
duration: recordingSession.duration,
|
||||
size: recordingSession.size ?? CGSize.zero)
|
||||
onVideoRecorded(video)
|
||||
} else {
|
||||
// Recording wasn't saved and we don't have an error either.
|
||||
|
||||
Reference in New Issue
Block a user