Capture webcam video on webpage
Dec 17, 2020
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”: