Skip to content

Commit aa6d6e3

Browse files
committed
Merge branch 'master' of github.com:dank-stuff/dankscreen
2 parents 2dfe431 + ba2ba15 commit aa6d6e3

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

public/script.js

100644100755
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,17 @@ form.addEventListener("submit", (e) => {
1414
function playVideo(width, height) {
1515
if (navigator.mediaDevices.getUserMedia) {
1616
navigator.mediaDevices
17-
.getUserMedia({ video: { width, height }, audio: false })
17+
.getUserMedia({
18+
video: { width, height, frameRate: { ideal: 60 } },
19+
audio: {
20+
latency: { ideal: 0.001 },
21+
sampleRate: { ideal: 48000 },
22+
channelCount: { ideal: 2 },
23+
echoCancellation: false,
24+
noiseSuppression: false,
25+
autoGainControl: false,
26+
},
27+
})
1828
.then((stream) => {
1929
captureVideo.srcObject = stream;
2030
captureVideo.width = width;

0 commit comments

Comments
 (0)