Re:Webcam in a Favicon
by florian_s on Sunday April 21, 2019 @10:51AM
(#19712300)
The source code is actually small enough to be posted here
From https://github.com/wybiral/code-art/blob/master/projects/tin...
[ Parent
| on HN ]
That explains why it does nothing in Safari. Safari doesn't support `navigator.getUserMedia`, as that's deprecated and no longer part of the standard. The standard way to do this is navigator.mediaDevices.getUserMedia
Re:Webcam in a Favicon
by chipperyman573 on Sunday April 21, 2019 @04:11PM
(#19714272)
Is there a reason that he sets a timeout of 100? Since this is all local (because of canvas.toDataURL()), can't it just run every 16ms (60 fps) instead of 100? I noticed in the gif that it was super choppy but I kind of assumed there was a technical reason, but I can't think of a reason that there would be a reason to have such a long delay.