To use the camera and microphone locally, you must access this site via http://localhost or use HTTPS.