in src/js/client/camera.ts [94:104]
setupVideoDimensions(width: number, height: number) {
this.aspectRatio = width / height;
if (width >= height) {
this.videoElement.height = VIDEO_PIXELS;
this.videoElement.width = this.aspectRatio * VIDEO_PIXELS;
} else {
this.videoElement.width = VIDEO_PIXELS;
this.videoElement.height = VIDEO_PIXELS / this.aspectRatio;
}
}