# Lesson 4: Robot Cinema

## Aim

The aim of this lesson is to explore how to turn your Misty into a robot cinema. By the end of this lesson, you'll be able to record your own videos and play them on Misty's display.  If you have any questions about the video blocks, you can check out [vision](https://lessons.mistyrobotics.com/blockly-elements/misty-blocks/vision "mention").

## Uploading an image or movie

### Challenge 1: Prepare your intro

In the last lesson we learned how to upload custom images on Misty, but did you know that you can turn Misty into a mini cinema too? Every movie needs an introduction screen or image, let's try making one by uploading an image or expression and combine it together with a LED light.

<figure><img src="https://3732834919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrpyhVmLjv9Bu7tKDF8HF%2Fuploads%2FgKTyBBZrEGfpbn6eSk56%2Fimage.png?alt=media&#x26;token=2d40b4c4-2e3e-4c8b-8fa8-ce16622742d5" alt=""><figcaption></figcaption></figure>

### Challenge 2: Upload your video

To upload your video you can follow exactly the same steps as for the upload audio and upload image blocks. Once you made or found the video you want Misty to show, you can play it by using the play video asset block from the 'Vision' tab in your Misty Blocks. You can also add some special effects by selecting a different LED color.

<figure><img src="https://3732834919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrpyhVmLjv9Bu7tKDF8HF%2Fuploads%2F0gW4btwfmTpnysUEEnIS%2Fimage.png?alt=media&#x26;token=27f719a8-4a30-4ffc-95ae-23d769255567" alt="" width="282"><figcaption></figcaption></figure>

## Shooting a new movie

### Challenge 3: Snap a photo with Misty

Misty loves to take pictures together with her friends and you are no exception. If you would like Misty to take a picture of you, an object or landscape, you can go the Vision tab under Explore in Misty Studio and press 'Display Photo'

<figure><img src="https://3732834919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrpyhVmLjv9Bu7tKDF8HF%2Fuploads%2FqXzXsy4gXem97NIuSjjW%2Fimage.png?alt=media&#x26;token=9c2e00bb-2cab-47ae-b2ef-471628688a61" alt=""><figcaption></figcaption></figure>

Success!  You can now download the photo by pressing the 'Download photo' button. Once you've downloaded it you can give the file a unique name. Go back to your Blockly program and upload the image using the upload image block.&#x20;

<figure><img src="https://3732834919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrpyhVmLjv9Bu7tKDF8HF%2Fuploads%2Fj6yjs3oMpEtR5xJHlGF6%2Fimage.png?alt=media&#x26;token=3433ac8f-c644-4636-85e5-1e40f193a2fc" alt=""><figcaption></figcaption></figure>

### Challenge 4: Record videos

Now let's imagine you are Misty's personal director and want to record a short movie with her. You can go to the Record Video section in the 'Vision' tab in under Explore. You can also choose the resolution of the video.

<figure><img src="https://3732834919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrpyhVmLjv9Bu7tKDF8HF%2Fuploads%2FNLFJtPhsjmcZ3sJNx1ri%2Fimage.png?alt=media&#x26;token=56443535-54ee-476e-b56f-d10aac5139b7" alt=""><figcaption></figcaption></figure>

### Challenge 5: Create a trailer with Misty of your favorite movie

If you are here it means you are already familiar with most of Misty's capabilities! Compliments!

But you're only at the beginning of your journey. Before moving on, try recording a short movie and use what you've learned so far to create your very own movie introduction with Misty. Be creative and use all her functionalities. She'll be a perfect actor because she will listen to your every command.

Feel free to share it with the rest of the Misty community!&#x20;

***

### Advanced

If you are using the take picture or video recording in Blockly, you can access the files directly from the browser console ("Cmd + Option + J" (on a Mac) or "Ctrl +Shift +J" (on Windows). As an alternative, you can right-click on the webpage and click "Inspect" to open the developer console.).

Open it before running the code, it will look like this:&#x20;

<figure><img src="https://3732834919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrpyhVmLjv9Bu7tKDF8HF%2Fuploads%2FjiZq13evVAlczxTxoaM4%2Fimage.png?alt=media&#x26;token=d7dc8837-0d84-4a37-a42b-a8375e41eb1a" alt=""><figcaption></figcaption></figure>

Here you can see all what Misty is doing. To access the files you will need to find this area in your console:&#x20;

When she takes a picture or records a video she creates a link to that content. Click on the 7th line and expand it. The first link is your picture or video.

<figure><img src="https://3732834919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrpyhVmLjv9Bu7tKDF8HF%2Fuploads%2F7PwD4JJnSO6EllcBAWQm%2Fimage.png?alt=media&#x26;token=6aa3897a-30b9-4e47-aeb1-3db75ed9604d" alt=""><figcaption></figcaption></figure>

###

### Up Next [👇](https://emojipedia.org/backhand-index-pointing-down)

{% content-ref url="lesson-5-events" %}
[lesson-5-events](https://lessons.mistyrobotics.com/blockly/blockly-lessons/lesson-5-events)
{% endcontent-ref %}


---

# 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://lessons.mistyrobotics.com/blockly/blockly-lessons/lesson-4-robot-cinema.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.
