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

@@ -18,11 +18,17 @@ struct Video {
Duration of the recorded video (in seconds)
*/
var duration: Double
/**
* The size of the video, in pixels.
*/
var size: CGSize
func toJSValue() -> NSDictionary {
return [
"path": path,
"duration": duration,
"width": size.width,
"height": size.height,
]
}
}