Pixel 4XL Infrared sensor via getUserMedia

It’s turns out that you can access the pixel 4 face detection IR camera via normal getUserMedia. 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.

If you want to quickly try this then you can view the demo here.

Anyone got any ideas about what we can do with infrared camera access?


Francois Beafort updated Blink by adding infrared to the camera name if the device supports it - 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).

Picture of me smiling.

Paul Kinlan

Trying to make the web and developers better.

RSS Github Medium


Weston Ruter Lukas Caha V Strange Mojo Johannes Wachter WTM Eldoret Jeffrey Yoo Warren Caleb Carithers Bwana Maina DevFest Rift Valley Maximiliano Firtman @ Bay area 🇺🇸 MRr Wiktor Olejniczak Niklas Blum Mark Tomlin Simon Ström Muhamad Firhat


shino DevFest Rift Valley MRr Michael Herman

Comments and Replies

Paul KinlanPaul Kinlan
Not sure it will help. It requires the back light on camera and isn't super well configured to heat
Jake ArchibaldJake Archibald
Cheers! I don't think it is, since it depends on an IR bulb, so I may as well use a torch.
Thomas SteinerThomas Steiner
I just saw weird ghost pictures that looked night-visiony, never tried it myself. Good luck with the regular torch then, hope you find it!