in src/js/client/camera.ts [127:137]
snapshot() {
this.snapShotCanvas.height = this.videoElement.height;
this.snapShotCanvas.width = this.videoElement.width;
let ctx = this.snapShotCanvas.getContext('2d');
ctx.drawImage(this.videoElement, 0, 0, this.snapShotCanvas.width,
this.snapShotCanvas.height);
let img = new Image();
img.src = this.snapShotCanvas.toDataURL('image/png');
this.pauseCamera();
return img.src;
}