/pseudo-web-proximity

An experiment using the camera API for proximity, while the Proximity API is still in draft.

Primary LanguageJavaScript

Pseudo Web Proximity

Fun project using the camera to mimic a phone's proximity sensor.

This was a project to try mimic a proximity sensor on a web-app, similar to what's available on native apps.

Currently, the Web Proximity Events spec is still in draft mode. So in the mean-time this is a kinda functional work-around.

Notes:

  • Fell back to using the navigator.getUserMedia API due to some issues using the newer navigator.mediaDevices.getUserMedia API on mobile safari.
  • Mobile safari is an intersting use case and hence is still a work in progress.