Changeset - 9bb0eb587d5b
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 8 months ago 2024-05-21 18:58:13
drewp@bigasterisk.com
640x480 camera res
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
web/calibrate/Light9Camera.ts
Show inline comments
 
@@ -73,12 +73,14 @@ export class Light9Camera extends LitEle
 
    this.ctx = this.canvas.getContext("2d", { willReadFrequently: true })!;
 

	
 
    const constraints: MediaStreamConstraints = {
 
      video: {
 
        facingMode: { ideal: "environment" },
 
        frameRate: { max: 10 },
 
        width: 640,
 
        height: 480,
 
      },
 
    };
 
    const stream = await navigator.mediaDevices.getUserMedia(constraints);
 
    const t = stream.getVideoTracks()[0];
 
    await t.applyConstraints({
 
      brightness: 0,
0 comments (0 inline, 0 general)