Learn to Code via Tutorials on Repl.it!

← Back to all posts
Capture webcam video on webpage
remarkablemark

Add <video> element with the autoplay attribute enabled:

Stream the video media using MediaDevices.getUserMedia():

Full example (see demo and code), which is inspired by the article "Capture Audio and Video in HTML5":


This article was originally published on remarkablemark.org on December 17, 2020.

Voters
23950logan
Squirrel777
maxina
EpicGamer007
badst
remarkablemark