Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bil-ash authored Mar 4, 2024
1 parent b1333e5 commit 6e66dc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const startRecording = async () => {

endRecordingButton.style.display = 'block';

let audioSampleRate = audioTrack?.getCapabilities().sampleRate.max;
let audioSampleRate = audioTrack?.getCapabilities().sampleRate.min;

// Create an MP4 muxer with a video track and maybe an audio track
muxer = new Mp4Muxer.Muxer({
Expand Down Expand Up @@ -203,4 +203,4 @@ window.addEventListener('mousemove', (e) => {
let newPos = getRelativeMousePos(e);
drawLine(lastPos, newPos);
lastPos = newPos;
});
});

0 comments on commit 6e66dc5

Please sign in to comment.