A new experimental, and may I dare say, a bit creepy Chrome Extension called FacePause pauses a YouTube video when you look away from the screen. It does this by utilizing an API called FaceDetector that has been available in Chrome since version 56.
Created by Mattias Hemmingsson, FacePause is an experiment to see if he could get the API to control YouTube video playback for when "you look away or going for a sandwich". To demonstrate how the extension works, Hemmingsson created a video showing the extension in action.
BleepingComputer had reached out to Hemmingsson for comments regarding why he created this extension and whether it was easy to do.
"Just for fun," Hemmingsson told BleepingComputer. "have always been interested in tech which does not need any user interactions. so when I found out chrome had this new API, I knew I needed to do something with it."
"It was quite easy," explained Hemmingsson when asked how easy it was to make the extension. "The API is very straight forward, send it an image and it gives you a reply if there are face/s in the image."
For those who are concerned or a bit creeped out about your browser recognizing your face and performing actions based on it, the FaceDetector API is currently an experimental feature and has to be enabled before it can be used. Even with the feature on, Chrome wont use your web cam without getting permission from you.
Unfortunately, the API was not able to detect my face or my two kids, but maybe you will have better luck?
To test out the FacePause extension simply follow these steps:
Were you able to get this extension to work?