Doing this in javascript is creepy, however the technology itself can have other than nefarious uses too.
For example in a bandwidth constrained situation you could determine which piece of a video stream to optimize for higher quality based on the general area you are or were looking at, if you look at it long enough it should stop being fuzzy.
Video streaming is too slow to adapt, but I see a way for advertisers to check if you watched an ad even if you didn't interact. Specially if the site already uses the webcam.
That was the thought that immediately came to mind when I saw this article --- as if unskippable ads were bad enough, with this they'll be able to make ads that you can't not watch, and the whole thing just disturbs me greatly. No doubt it'll get spun into an ostensibly "user-friendly" "automatically pauses the video if you look away" "feature"... but the motives are clear enough.