This content originally appeared on Modern Web Development with Chrome and was authored by Paul Kinlan
<figure><img src="https://paul.kinlan.me/images/2019-12-10-pixel-4xl-infrared-sensor-via-getusermedia-0.jpeg" alt=""></figure>
<p>It's turns out that you can access the pixel 4 face detection IR camera via normal <code>getUserMedia</code>. The interesting thing is that if you try to do face unlock when this camera is being used (the bit where it throws things on to your face) the system will just flat refuse to do any of the face unlock process and that makes sense.</p>
<p>If you want to quickly try this then you can view the <a href="https://webrtc.github.io/samples/src/content/devices/input-output/">demo here</a>.</p>
<p>Anyone got any ideas about what we can do with infrared camera access?</p>
<h3 id="update">Update</h3>
<p>Francois Beafort updated Blink by adding <code>infrared</code> to the <a href="https://chromium-review.googlesource.com/c/chromium/src/+/1960152">camera name if the
device supports it</a> - this will let you quickly get a better understanding of the type of camera just by the name (also will let users pick the one they want more effectively).</p>
This content originally appeared on Modern Web Development with Chrome and was authored by Paul Kinlan