# Play videos

> Play a video such as an opening full screen, and play a video as the background and remove it

The "Movie" part plays a video across the whole screen, and waits until it ends before going on. Use it for an opening or a flashback video. To keep a video playing as the background, use the "Bg video" part.

The examples on this page use the project you make in the [tutorial](/en/tutorial/), "Shiori of the Library."

Put the videos in "Videos" on the "Assets" screen beforehand. Here, a 4-second `opening.mp4` and a looping `night_sky.mp4` are used.

## Play a video full screen

1. Select the text block just before where the video should play (here, "All at once, I remembered the sunset on that hill.").
2. Type "movie" in the search box at the top of the parts panel, and double-click "Movie" in the results.
3. In the parameter panel on the right, click the `file` field and choose `opening.mp4` from the list.
4. So that players can skip it with a click, check `skip`.

![The Movie part, with opening.mp4 chosen in file and skip checked.](/shots/en/h-movie-movie.webp)

When the text moves on, the video plays across the whole screen. The message window is hidden while it plays. When the video ends (or when the player clicks, if `skip` is checked), the story goes on to the next text.

![The video playing.](/shots/en/h-movie-movie-game.webp)

| Parameter | What it sets |
|---|---|
| volume | Volume (0 to 100; 100 by default) |
| skip | Can be skipped with a click (unchecked by default) |
| skip-seen | A video the player has watched to the end can be skipped with a click, even if skip isn't checked (checked by default) |
| mute | No sound |
| time | Fade-in time |
| menu | Show the quick menu while it plays |
| subtitles | Subtitle file (a WebVTT .vtt file, chosen from "Videos" in the assets) |

## Play a video as the background

1. Select the movie block ("Movie opening.mp4"). With "movie" still in the search box, double-click "Bg video."
2. Choose `night_sky.mp4` in `file`.
3. It should loop, so leave `loop` checked. The video has no sound, so check `mute`.

![The Bg video part, with night_sky.mp4 chosen in file and mute checked.](/shots/en/h-movie-bg.webp)

The video keeps playing above the background image and below the sprites. The text goes on as usual.

![A video of the hill at night playing as the background.](/shots/en/h-movie-bg-game.webp)

## Remove the background video

1. Select the text block just before where the video should be removed (here, "The stars drifted slowly across the sky.").
2. With "movie" still in the search box, double-click "Stop bg video" (`@stop-bg-movie`).
3. Enter the time it takes to remove it, `1000`, in `time`.

![The Stop bg video part. Enter 1000 in time.](/shots/en/h-movie-stop.webp)

The video disappears, and the background underneath (the library) shows again.

![The background video has disappeared, and the library is back.](/shots/en/h-movie-stop-game.webp)

To remove it after it has played through once, use "Await bg video" (`@wait-bg-movie`). It stops the loop and waits until the video plays to the end.

## In code

```
All at once, I remembered the sunset on that hill.
@movie opening.mp4 skip=true
@bg-movie night_sky.mp4 mute=true
Before I knew it, I was standing on the hill at night.
The stars drifted slowly across the sky.
@stop-bg-movie time=1s
When I opened my eyes, I was back in the library.
```

For details, see [@movie](/en/reference/movie/), [@bg-movie](/en/reference/bg-movie/) and [@stop-bg-movie](/en/reference/stop-bg-movie/).
