pahvalentines/backend/app
michael a570ac657f fix: Improve audio streaming reliability and playback
Stream endpoint:
- Increase read timeout to 600s for progressive audio generation
- Use larger 16KB chunks for smoother playback
- Remove misleading Accept-Ranges header (we don't support range requests)
- Add logging for stream start/completion
- Properly close httpx client after streaming

Frontend:
- Wait for 'canplay' event before attempting autoplay
- Add event listeners for play, error, stalled, waiting
- Native audio controls' play button now properly hides tap message
- Add 5s fallback timeout if canplay doesn't fire

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 08:40:02 -06:00
..
routers fix: Improve audio streaming reliability and playback 2026-02-02 08:40:02 -06:00
__init__.py Add backend API, video generator, and frontend updates 2026-01-30 10:31:58 -06:00
config.py Add backend API, video generator, and frontend updates 2026-01-30 10:31:58 -06:00
database.py Add backend API, video generator, and frontend updates 2026-01-30 10:31:58 -06:00
main.py feat: Add Sonauto streaming audio on waiting page 2026-02-02 08:23:14 -06:00
models.py feat: Add Sonauto streaming audio on waiting page 2026-02-02 08:23:14 -06:00
schemas.py fix: Sync backend schema with frontend pet types and music vibes 2026-02-02 08:29:42 -06:00