Enhancement: Camera API support for privacy-preserving computer-vision games
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 28/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- react, typescript
- Ambito
- computer-vision, mobile-dev, security, web-dev
Direzione di ricerca
Start with the devvit.json permission model and the current Devvit Web template's handling of unsupported web APIs. Compare that behavior with the React proof of concept using navigator.mediaDevices.getUserMedia() and MediaPipe Pose Landmarker. Done would require a reviewed permission design covering user gesture, expanded mode, iframe policy, mobile WebView forwarding, lifecycle cleanup, and camera error states.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Area: Devvit Web —
weblabel requested (repository labels are maintainer-managed).
Feature request
Please add opt-in camera access to Devvit Web so developers can build privacy-preserving, camera-controlled games inside Reddit.
I am developing a line of interactive computer-vision games, starting with Fly or Die: players flap their arms in front of their phone or computer camera, on-device pose estimation recognizes the movement, and a bird flies through an obstacle course. This could expand into gesture-controlled rhythm games, dance challenges, fitness games, charades, and community competitions.
Proof of concept
I created a React Devvit Web test app:
- App slug:
you-fly-or-die - Playtest community:
r/you_fly_or_die_dev - Devvit version: 0.14.1
- Camera API:
navigator.mediaDevices.getUserMedia() - Pose engine: MediaPipe Pose Landmarker, with its model and WASM assets bundled on the app's own webview origin
The exact client works locally: the camera becomes active, pose tracking starts, and hundreds of frames are processed successfully. The current Devvit template, however, identifies camera access as an unsupported web API with no alternative, which blocks this class of experience inside Reddit.
Requested capability
A secure implementation could include:
- An explicit camera permission in
devvit.json, subject to app review. - Camera access only from a trusted user gesture and only in expanded mode.
- The required iframe permission policy and native iOS/Android WebView permission forwarding.
- Consistent support for front- and rear-facing camera selection where available.
- Clear error states for denied, unavailable, and unsupported cameras.
- Automatic suspension and track cleanup when the post is hidden, minimized, backgrounded, or closed.
- A visible Reddit-level camera-active indicator.
Privacy and safety model
For these games, all video processing can remain on-device:
- Raw camera frames are never uploaded or stored.
- Only ephemeral pose landmarks are used by the game loop.
- The user sees a live preview and explicitly starts and stops the camera.
- Camera tracks are stopped immediately when gameplay ends or visibility changes.
- Apps requesting camera access could be required to provide a privacy disclosure and pass additional review.
Camera support would enable a distinctive category of active, social games that are difficult to create with touch controls alone, while keeping sensitive video data on the player's device.
Would the Devvit team consider camera access as a reviewed permission, or offer an experimental allowlist/pilot for developers building on-device computer-vision experiences? I would be happy to share the working proof of concept and help test desktop, iOS, and Android behavior.
- Lingua principale
- TypeScript
- Stelle
- 211
- Fork
- 89
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di reddit/devvit
-
Bound concurrent filesystem reads during asset discovery and source ZIP generationForse già presa @CR29-22-2805 l’ha presa 76 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
requestExpandedMode(event, "game") does not switch inline webview to the game entrypoint in PlaytestAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
Tutte le issue di reddit/devvit
Issue simili
-
skills.mdx: ReadResourceDirectoryRequest does not type-check against the 2026-07-28 base schemaAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
modelcontextprotocol/ext-skills#156 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
MystenLabs/MemWal#1104 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Effect-TS/effect#8728 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
account-pool bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
lidge-jun/opencodex#6571 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Add: CanalPlusSport8SK.skApertacheck:passed streams:add
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno