Tabs and YouTube videos

Hello

I’m creating a little video module where I use the webflow tabs feature. Within each tab, I have a YouTube video (actually, ultimately, a video playlist). What I need to figure out how to do is to stop the currently playing video when a new tab is clicked. I’m sure this is achieved with javascript somehow, but though I’m familiar with the syntax, I’m not savvy enough to write it from scratch. Can anyone please lend a hand with this?

TIA,

Adrian

Please try something first like this post and provide required details in your question.

How to start background video with a button and remove autoplay?