Skip to content

Commit 14fcfb1

Browse files
committed
enabling autofocus, aka continuous-picture focus
1 parent 031b140 commit 14fcfb1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ window.addEventListener("load", function() {
1717

1818
function previewCamera(camera) {
1919
debug_msg('camera: ' + camera.toString());
20+
camera.focusMode = "continuous-picture";
2021
video.mozSrcObject = camera;
2122
video.play();
2223
}

0 commit comments

Comments
 (0)