How to stop an embedded Vimeo video when you hide the object

bcalhoun4409 Community Member Posts: 3 ☆ Roadie ☆
We embed Vimieo videos into our courses using the the embedded code in an HTML Extension.  This works great, however, we are now doing a course where we have 2 videos on one page.  When you click a button video1 appears and you can click the play button on the video.  If you click button2 video1 will hide and video2 will appear.  The issue is that when we hide the HTML Extension (video1) the video doesn't show, but the audio keeps playing.  Anyone know how to stop the video when you hide the HTML object?