From 6aead80046ba2a594cc65e9aa092d5405f9ae3ce Mon Sep 17 00:00:00 2001 From: Johannes Kron Date: Thu, 12 Oct 2023 11:41:31 +0200 Subject: [PATCH] Set min/max to 5 --- pc_capture_min0max5/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pc_capture_min0max5/js/main.js b/pc_capture_min0max5/js/main.js index 5537eab..a8de7af 100644 --- a/pc_capture_min0max5/js/main.js +++ b/pc_capture_min0max5/js/main.js @@ -67,7 +67,7 @@ async function start() { function handleSuccess(stream) { startButton.disabled = true; - stream.getVideoTracks()[0].applyConstraints({frameRate:{min:0, max:5}}); + stream.getVideoTracks()[0].applyConstraints({frameRate:{min:5, max:5}}); localVideo.srcObject = stream; localStream = stream; callButton.disabled = false;