Skip to content

Commit

Permalink
Set min/max to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
drkron committed Oct 12, 2023
1 parent a5eee68 commit 6aead80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pc_capture_min0max5/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6aead80

Please sign in to comment.