Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Fix duplicate mediaRecorder.start() call causing recording to fail

Murtaza Nasir701fddb5f4d8
diff --git a/static/js/app.js b/static/js/app.js
index ac15e4b4..b8f00c19 100644
--- a/static/js/app.js
+++ b/static/js/app.js
@@ -3426,10 +3426,6 @@ document.addEventListener('DOMContentLoaded', async () => {
// Request data every 1 second (1000ms)
mediaRecorder.value.start(1000);
console.log('[MediaRecorder] Started with 1-second timeslice for background resilience');
- // Use timeslice to force regular data emission - helps prevent pausing in background
- // Request data every 1 second (1000ms)
- mediaRecorder.value.start(1000);
- console.log('[MediaRecorder] Started with 1-second timeslice for background resilience');
isRecording.value = true;
recordingTime.value = 0;
recordingInterval.value = setInterval(() => {