Embedded YouTube Videos Keep Playing After Closing "Cards"

We have YouTube videos embedded on the cards used on this About Us page: https://www.pmanonprofit.com/about-us. However, the videos don’t stop playing when you exit out of the individual cards, which I imagine would be annoying for users, who would have to go back and manually end the video. Is there a way to signal for the videos to pause when you exit each card? Thanks.

Hi @PMA-Nonprofit! Interesting because usually the opposite behavior is wanted…keep YT videos playing in the background. :grinning_face: Which makes me wonder why yours are not following the typical behavior of pausing when they go out of focus.

This article is not exactly what you’re looking for but it does give us a clue as to how web developers might be using code to stop a video when it is not in focus. Perhaps your web developer can look into this code and ADD it to your site when most sites are wanting it removed.

Keep Video’s Playing When Tab is not in Active View - Browser Support - Brave Community

“…the thing that many sneaky web developers are now doing is injecting JavaScript code into the video’s so once “Focus” is lost from the main tab you are viewing the embedded video player is instructed to stop all functions of playing until “Focus” is gained back.”

Okay, thanks for this. I’m pretty non-techy with web development, just to say. I’ll look into that one and others, but am not confident about my ability to fix it via coding. Thanks though.