Skip to main content
100%

[Run it!](https://bl.ocks.org/curran/raw/3184b45f555dae6bebb1536110763824/)

✓ Published0🌍 Public
CCurran Kelleher
Last edited Sep 10, 2016
Created on Sep 4, 2016

This example displays a live webcam feed as an immersive digital mirror, filling the entire viewport with the video stream. It uses the MediaDevices `getUserMedia` API to request camera access and the `webrtc-adapter` library for cross-browser compatibility, with `window.URL.createObjectURL` to bind the stream to an HTML5 video element. The page relies on minimal CSS and JavaScript, drawing from the camera-control techniques in David Walsh’s tutorial and the MDN documentation for media capture.

AI-generated description

A digital mirror - shows the video feed from your camera.

Run it!

It doesn't work in bl.ocks.org using http due to security restrictions. It does, however, work using https (thanks to Robert Monfera for pointing this out).

Draws from:

Built with blockbuilder.org

mit Licensed

Similar vizzes