function getWebcamStream(callback) {
  window.navigator.mediaDevices
    .getUserMedia({video: true})
    .then(stream => callback(stream))
    .catch(console.error); // eslint-disable-line
}
function getWebcamStream(callback) {
  window.navigator.mediaDevices
    .getUserMedia({video: true})
    .then(stream => callback(stream))
    .catch(console.error); // eslint-disable-line
}
function getWebcamStream ( callback ) { window . navigator . mediaDevices . getUserMedia ( { video : true } ) . then ( stream => callback ( stream ) ) . catch ( console . error ) ; // eslint-disable-line }
/* global window
/ * global window
Get the current video stream