Skip to content

fix(voice-to-text): make the recorded-audio player pausable/seekable - #78

Merged
slaveofcode merged 1 commit into
developfrom
fix/voice-audio-duration
Aug 1, 2026
Merged

fix(voice-to-text): make the recorded-audio player pausable/seekable#78
slaveofcode merged 1 commit into
developfrom
fix/voice-audio-duration

Conversation

@slaveofcode

Copy link
Copy Markdown
Owner

After recording, the preview player's pause/seek was unresponsive. MediaRecorder WebM/Opus blobs carry no duration in their header → browser reports duration=Infinity → treats it as a live stream → frozen controls (uploaded mp3/wav were fine). On loadedmetadata, seek to the end once to force a real duration, then reset to 0.

lint clean · build green.

🤖 Generated with Claude Code

MediaRecorder blobs are a streaming container with no duration in the header, so
the browser reports duration=Infinity and treats the clip like a live stream —
freezing the native pause/seek controls after a recording (uploaded files were
fine). On loadedmetadata, seek to the end once to force the browser to compute a
real duration, then reset to 0; the controls then work normally.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@slaveofcode
slaveofcode merged commit b91adf2 into develop Aug 1, 2026
1 of 2 checks passed
@slaveofcode
slaveofcode deleted the fix/voice-audio-duration branch August 1, 2026 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant