function gotStream(stream) {
  mediaStream = stream;
  video.srcObject = stream;
  imageCapture = new ImageCapture(stream.getVideoTracks()[0]);
}
// create an ImageCapture object, using the video from the stream.

create an ImageCapture object, using the video from the stream.
create an ImageCapture object using the video from the stream .
function gotStream(stream) {
  mediaStream = stream;
  video.srcObject = stream;
  imageCapture = new ImageCapture(stream.getVideoTracks()[0]);
}
function gotStream ( stream ) { mediaStream = stream ; video . srcObject = stream ; imageCapture = new ImageCapture ( stream . getVideoTracks ( ) [ 0 ] ) ; }
create an ImageCapture object, using the video from the stream.
create an ImageCapture object using the video from the stream .