# Video Recorder

## Record a Video

You can record a timed video, where the app records for a set amount of time, or an untimed video, where the user can choose how long to film for.

You can display the videos you record with the [Video](https://docs.thunkable.com/snap-to-place/video) component. You can also save you recorded videos to the cloud with our [Media DB](https://docs.thunkable.com/snap-to-place/media-db) component. Once you have saved a video to the cloud, you can store the URL as a [cloud variable](https://docs.thunkable.com/snap-to-place/variables#cloud-variables) or in an [Airtable DB](https://docs.thunkable.com/snap-to-place/spreadsheet) to make it accessible through the app on other devices.

## Functions

### Timed Video Recording

![](https://689802330-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAn5scXl2uqUJUOqkJo%2F-MGrpexQeoupeChRB8ki%2F-MGryKa2eRQ8CYcuyFzv%2Ftimedrecording.png?alt=media\&token=f001c5f4-ad73-4973-ba88-11d02abd73fd)

| Input   | Data Type | Function                                  |
| ------- | --------- | ----------------------------------------- |
| seconds | Integer   | Specify a number of seconds to record for |

| Output     | Data Type                                         | Function                                       |
| ---------- | ------------------------------------------------- | ---------------------------------------------- |
| video file | <p>web: Ogg</p><p>Android: MP4</p><p>iOS: MOV</p> | Returns the recorded video                     |
| error      | text                                              | If there is an error, returns an error message |

### Untimed Video Recording

![](https://689802330-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAn5scXl2uqUJUOqkJo%2F-MGrpexQeoupeChRB8ki%2F-MGrx1IdYJYU5-JvTS7M%2Funtimedrecording.png?alt=media\&token=78e7ad9b-2dda-45d4-a1c8-5df067b0edd6)

| Output     | Data Type                                         | Function                                       |
| ---------- | ------------------------------------------------- | ---------------------------------------------- |
| video file | <p>web: Ogg</p><p>Android: MP4</p><p>iOS: MOV</p> | Returns the recorded video                     |
| error      | text                                              | If there is an error, returns an error message |

## Properties

### Set Camera

![](https://689802330-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAn5scXl2uqUJUOqkJo%2F-MGrpexQeoupeChRB8ki%2F-MGrulft27tq_bDyA1aH%2Fvideorecorderback.png?alt=media\&token=82468eda-75ab-4dd8-8d83-aa68cb547540)

Select a camera to film with. You can record with the front or back camera of your device.

### Show Current Camera

![](https://689802330-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAn5scXl2uqUJUOqkJo%2F-MGrpexQeoupeChRB8ki%2F-MGrwFJZngH8UReavRCy%2Fwhichcamera.png?alt=media\&token=aa9c6ff1-8384-4660-a1d8-d6d2acf2b5d7)

Returns the camera currently being used to record. Will return `front` or `back`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.thunkable.com/snap-to-place/video-recorder.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
