Pausing videos within the video player widget on scroll OR when another video/ audio source begins playing

I’ve been trying to find ways to interact with WebFlow’s video player widget via custom code but have been having no luck.

How would you get it to pause the video it’s currently playing once it exits the viewport via scroll? Or once the user begins playing another audio/ video source on the page?

Were you able to find a way to do this? I would like to have something similar on a project I am working on