Modern browsers support playing video via the element. Most browsers also have access to webcams via the MediaDevices.getUserMedia() API.