Stopping Vimeo Video On Modal Close

Say you have some vimeo videos setup in bootstrap modal dialogs.

Consider the following scenario:

  • User opens modal and starts playing video
  • User closes the modal. This could be an accidental click or they just don’t want to watch the video anymore
  • Video keeps playing in the background

A video which continues to play in the background will be annoying if it contains audio and you have your speakers/headphones on.

Thankfully, bootstrap and vimeo have provided all the tools necessary to stop playing a video when the modal closes.

Continue reading Stopping Vimeo Video On Modal Close