Modal and video

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

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:

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:

<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

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