CamMeasure (fix + diagnóstico)
Si no prende: casi seguro abriste el .html en file:// o dentro de un WebView (ChatGPT / WhatsApp). En iPhone debe ser Safari y por https:// o http://localhost.
CTX: ?CAM: OFFPERM: ?
Cámara + medición (2 clics)
CLICKS: 0DIST: -
Uso: 1) Activar cámara 2) da 2 clics sobre el video → te da distancia en px y em.
Si no se activa: mira el panel de Diagnóstico.
Diagnóstico
Protocol
-
isSecureContext
-
getUserMedia
-
Browser
-
Regla dura (iOS): cámara solo en Safari con https:// o localhost. Si abres el .html como archivo (file://) NO hay cámara.
Cómo correrlo bien:
- En PC: python -m http.server 8080 en la carpeta y abre http://localhost:8080
- En tu servidor: súbelo y abre por https://tu-dominio/archivo.html