Stop all vimeo videos

I've attached a basic example. The ways it is constructed are:

  1. This player API script has been imported in the Head HTML
  2. Rectangle elements are made and vimeo's iframe code is placed inside of there
  3. There's a button that runs a function which looks at all iframes on the page, finds which ones are vimeo videos (by seeing if the src references vimeo), and then uses the API for each to call pause.

VimeoPause.hype.zip (17.5 KB)

It seems vimeo by default only lets one video play at a time, so I couldn't really test pausing all, but this does seem to pause the playing video.

1 Like