# Modal and video

**URL:** <https://forums.realmacsoftware.com/t/modal-and-video/47145>\
**Category:** RapidWeaver Classic\
**Created:** [April 13, 2025, 9:42pm UTC](https://forums.realmacsoftware.com/t/modal-and-video/47145 "2025-04-13T21:42:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Borgija67](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@Borgija67](https://forums.realmacsoftware.com/u/Borgija67)\
**Post date:** [April 13, 2025, 9:42pm UTC](https://forums.realmacsoftware.com/t/modal-and-video/47145/1 "2025-04-13T21:42:13Z")

</div>

Hi! I am trying to add a short movie to the modal stack (F3 ). I am using a button as a trigger.  
The modal apears as it supposed to do, but i can not get the movie to start playing.  
Is it posible to put an movie into an modal?  
Thankful for help!  
/Sibin

---

<div class="post-metadata">

**Author:** ![Heroic\_Nonsense](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/heroic_nonsense/32/20666_2.png) [@Heroic\_Nonsense](https://forums.realmacsoftware.com/u/Heroic_Nonsense)\
**Post date:** [April 14, 2025, 11:09pm UTC](https://forums.realmacsoftware.com/t/modal-and-video/47145/3 "2025-04-14T23:09:36Z")

</div>

Hi @Borgija67,

Yes - the F3 Modal stack supports video, but the way you implement the video needs to support modals. HTML5 works fine, for example, as you can see here:

> **[Clips - Bartons on the Web](https://bartonsontheweb.nl/video/)**
>
> Video clips from C/o the Bartons episodes starring Olivia Harkin and Frankie J. Holden. Bartons on the Web is the only C/o The Bartons fansite in the world!

I built this by putting an HTML stack inside the modal, and use the HTML5 video component to play the mp4 files.

For example, the first tile (“_01 The Siege of Bartons’ Bathroom_”) opens a modal that contains an HTML stack with the following code:

```auto
<center><video controls width="800"><source src="https://www.bartonsontheweb.nl/vcr/001_SoBB_001_thats_my_pet.mp4" type="video/mp4"></video></center>

```

(Yes, I know the center tag is deprecated).

You could also put a Youtube or Vimeo player stack in there, if that stack plays nice with modals that is.

This works great, but one problem with Foundry 3 modals is that the video doesn’t stop playing when the visitor closes the modal. This true for any type of video or audio playback you put in a modal. Back when Elixir was still in business, they replied to support inquiries about this that it can’t be done any other way.

Cheers,  
Erwin

---

<div class="post-metadata">

**Author:** ![Borgija67](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@Borgija67](https://forums.realmacsoftware.com/u/Borgija67)\
**Post date:** [April 15, 2025, 6:31pm UTC](https://forums.realmacsoftware.com/t/modal-and-video/47145/4 "2025-04-15T18:31:37Z")

</div>

Thanks Erwin for the tips! I will give it a try.
