diff --git a/demo/script.js b/demo/script.js index 96e7f9a..543a4ad 100644 --- a/demo/script.js +++ b/demo/script.js @@ -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({ @@ -203,4 +203,4 @@ window.addEventListener('mousemove', (e) => { let newPos = getRelativeMousePos(e); drawLine(lastPos, newPos); lastPos = newPos; -}); \ No newline at end of file +});