Pause Video When Not In Window/Tab Focus?

I'm creating an HTML5 visual novel and the annoying part is that when I click away onto the bar or into another tab, the wait counters, the messages, and everything will pause, but the video won't!

Is there a way to create an event listener in Visual Novel Maker that will detect when a user navigates away and pause automatically, then resume playing once the window is in focus again?

Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/pause-video-when-not-in-window-tab-focus.146069/