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