feat: Add width
and height
to VideoFile
output (#2281)
* feat: Add `width` and `height` to `VideoFile` output * Format
This commit is contained in:
@@ -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,
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user