Record video
- 18 May 2022
- 1 Minute to read
-
DarkLight
-
PDF
Record video
- Updated on 18 May 2022
- 1 Minute to read
-
DarkLight
-
PDF
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.
Input arguments
Label | Key | Type | Required? | Default | Description |
---|---|---|---|---|---|
Record button label | recordLabel |
String | Yes | Record | Text label on the record button. |
Cancel button label | cancelLabel |
String | Yes | Cancel | Text label on the cancel button. |
Stop button label | stopLabel |
String | Yes | Stop | Text label on the stop recording button. |
Video maximum duration | maxDuration |
Number(integer) | No | – | Maximum duration for the recorded video, in seconds. |
Video resolution | videoResolution |
String | No | 720p | Resolution of the recorded video. |
Capture audio? | captureAudio |
Boolean | No | true | If true , include audio in the captured video. |
Output arguments
Number of outputs: 3
Label | Key | Type | Description |
---|---|---|---|
Video file | videoFile
|
Object | Object representing the captured video in the local filesystem |
|
videoFile.path
|
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. |
|
videoFile.mimeType
|
String | MIME type of the file, if it could be determined. |
|
videoFile.name
|
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. |
|
videoFile.size
|
Number | Size of the file, in bytes. |
|
videoFile.createdAt
|
String | Creation datetime of the file, if it can be determined. |
|
videoFile.modifiedAt
|
String | Datetime when the file was last modified, if it can be determined. |
Events
No events.
Errors
Label | Code | Description |
---|---|---|
Unknown error | unknown |
Thrown if an unknown error occured while recording the video. |
Was this article helpful?