I use an application called "Übersicht" that allows for custom widgets on Mac desktops. It just uses JavaScript. I came up with the idea to have a little photo/video in the corner of my desktop. I looked at some pre-existing code for this. The code for the photo worked fine. The code for the video worked too, but I wanted the ability to pause it by clicking. I don't want any control pop-ups or play buttons, only that when you click the video it...
Originally asked by Choi Soobin on Stack Exchange (stackoverflow) (CC BY-SA 4.0).