We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2dfe431 + ba2ba15 commit aa6d6e3Copy full SHA for aa6d6e3
1 file changed
public/script.js
100644
100755
@@ -14,7 +14,17 @@ form.addEventListener("submit", (e) => {
14
function playVideo(width, height) {
15
if (navigator.mediaDevices.getUserMedia) {
16
navigator.mediaDevices
17
- .getUserMedia({ video: { width, height }, audio: false })
+ .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
+ })
28
.then((stream) => {
29
captureVideo.srcObject = stream;
30
captureVideo.width = width;
0 commit comments