DEV Community

Kevin Davis SN5
Kevin Davis SN5

Posted on

Display thumbnails after taking a snapshot from an html5 webcam

Here is the situation.

Right, I have a html5 webcam script that allows me to take a picture and saves the snapshot.

See code below:

     function startWebcam() {
        if (navigator.getUserMedia) {
        navigator.getUserMedia (
          // constraints
          {
             video: true,
             audio: false
          },

          // successCallback
         function(localMediaStream) {
              video = document.querySelector('video');
             //video.src =

Top comments (0)