cajames / pseudo-web-proximity

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

Home Page:https://prox.λ.wtf/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

https://prox.λ.wtf/


Languages

Language:JavaScript 74.1%Language:Vue 16.1%Language:TypeScript 4.5%Language:CSS 3.8%Language:HTML 1.4%