- 18 May 2022
- 1 Minute to read
- Updated on 18 May 2022
- 1 Minute to read
Opens the device camera, allowing the user to record video.
Once the recording is completed by the user, the first output is triggered.
If the user cancels the recording, the second output is triggered.
If there is an error, the third output is triggered.
The recorded video is stored in a temporary directory with an autogenerated unique identifier for its filename. If you need to save the video file in a persistent way, use the Move file flow function to move it to the user files directory.
Web is currently not supported.
|Record button label||
||String||Yes||Record||Text label on the record button.|
|Cancel button label||
||String||Yes||Cancel||Text label on the cancel button.|
|Stop button label||
||String||Yes||Stop||Text label on the stop recording button.|
|Video maximum duration||
||Number(integer)||No||–||Maximum duration for the recorded video, in seconds.|
||String||No||720p||Resolution of the recorded video.|
Number of outputs: 3
||Object||Object representing the captured video in the local filesystem|
||String||Absolute local filesystem path representing the file location on the device, including the filename and extension. On web, this is created via the [`createObjectURL`](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL) method.|
||String||MIME type of the file, if it could be determined.|
||String||Name of the file in the local filesystem, if applicable. Note that the filename and extension are included in the **Local path** property already.|
||Number||Size of the file, in bytes.|
||String||Creation datetime of the file, if it can be determined.|
||String||Datetime when the file was last modified, if it can be determined.|
||Thrown if an unknown error occured while recording the video.|