feat: Add width and height to VideoFile output (#2281)

* feat: Add `width` and `height` to `VideoFile` output

* Format
This commit is contained in:
Marc Rousavy
2023-12-12 16:43:57 +01:00
committed by GitHub
parent 98f08800f2
commit 9a187c6d19
6 changed files with 27 additions and 3 deletions

View File

@@ -52,6 +52,13 @@ class RecordingSession {
return assetWriter.outputURL
}
/**
Gets the size of the recorded video, in pixels.
*/
var size: CGSize? {
return videoWriter?.naturalSize
}
/**
Get the duration (in seconds) of the recorded video.
*/