# How to create an application that takes a picture and starts a video

**URL:** <https://discourse.processing.org/t/how-to-create-an-application-that-takes-a-picture-and-starts-a-video/3437>\
**Category:** Libraries\
**Tags:** homework\
**Created:** [September 10, 2018, 4:47pm UTC](https://discourse.processing.org/t/how-to-create-an-application-that-takes-a-picture-and-starts-a-video/3437 "2018-09-10T16:47:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alessandroc93](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@Alessandroc93](https://discourse.processing.org/u/Alessandroc93)\
**Post date:** [September 10, 2018, 4:47pm UTC](https://discourse.processing.org/t/how-to-create-an-application-that-takes-a-picture-and-starts-a-video/3437/1 "2018-09-10T16:47:44Z")

</div>

Good morning I am a university student. For a university project I wanted to implement an application that has a basic function. The application starts with a button, which can be the logo of the project. When pressed, the button must start two functions. The first is a photo with the front camera, which goes to save the image in a hidden folder. The subject who presses this button does not have to know about photography. The other command that plays the button, after the photo is to start a video, which I do not know yet the duration. It all ends with a web link where these “hidden photos” will be uploaded. Thank you for your availability.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [September 10, 2018, 4:51pm UTC](https://discourse.processing.org/t/how-to-create-an-application-that-takes-a-picture-and-starts-a-video/3437/2 "2018-09-10T16:51:03Z")

</div>

What is your question, exactly? What have you already tried, and where are you stuck?

Surely you are not saying “please do my homework for me” – so please let the forum know what the current state of your project is and what specific questions you have.

You may want to break this down: start by creating a sketch with a button, or a sketch that takes a picture, or a sketch that starts a video, before combining them. As a first step, if you haven’t looked at examples already, you may want to check the Examples in Processing and the [processing.org](http://processing.org) Tutorials and Examples to see sketches that demonstrate buttons, videos, et cetera.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [September 10, 2018, 4:59pm UTC](https://discourse.processing.org/t/how-to-create-an-application-that-takes-a-picture-and-starts-a-video/3437/3 "2018-09-10T16:59:02Z")

</div>

> [@Alessandroc93](#):
>
> It all ends with a web link where these “hidden photos” will be uploaded

This may be tricky. Are they being uploaded to remote storage (a hard drive), or to a live website for public display? The more details you can provide about exactly what you are trying to achieve for this part the better. You could mount a network drive and just save files to it, or save to a locally synced folder for e.g. Google Drive, Dropbox, Box, et cetera. Or you could use a Data / IO library – network, sftp, or even websockets.

- [Network / Libraries / Processing.org](https://processing.org/reference/libraries/net/index.html)
- [Libraries / Processing.org](https://processing.org/reference/libraries/#data)
- [Libraries / Processing.org](https://processing.org/reference/libraries/#io)
