A stable getUserMedia() class to implement in projects involving using the user webcam and microphone. Class includes methods to stop and start the camera / microphone streams. If media capture is not supported by the device, it will display a text message enclosed in a paragraph tag recommending the user to download the latest version of Chrome.
Click on the link to access the demo: https://rawgit.com/moczka/webcam-capture/master/main.html