Commit graph

23 commits

Author SHA1 Message Date
Deepak Salunke
587521af9b Result page logic changes 2026-02-05 13:51:21 +05:30
Deepak Salunke
2ee9dac230 Result: Audio player for mp3 & streaming 2026-02-05 01:49:15 +05:30
Harshad
5db89c82b2 fix(waiting): missing sessionID function 2026-02-04 18:09:40 +05:30
Harshad
5da1cb8fff refactor(waiting): c;lean-up JS logic with main func 2026-02-04 17:04:59 +05:30
Harshad
e464ba5980 feat(waiting): add & position record needle 2026-02-04 16:57:12 +05:30
Deepak Salunke
53ae7e4247 Result & Waiting: WIP on Record Spin & needle 2026-02-04 16:41:30 +05:30
DeepakasBTG
a3a518299f Merge branch 'main' into frontend 2026-02-04 11:10:19 +05:30
Deepak Salunke
195592992f Minor frontend changes 2026-02-04 11:07:57 +05:30
michael
c3d29426e0 refactor: use Sonauto streaming URL directly
Replace backend proxy streaming endpoint with direct access to
Sonauto's public streaming URL (api-stream.sonauto.ai). This
simplifies the architecture and reduces latency.

- Update waiting.php to use task_id from status API response
- Add autoplay attribute to audio element per Sonauto docs
- Remove stream.py proxy router (no longer needed)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 14:32:48 -06:00
DeepakasBTG
3246a51579 Merge pull request #14 from DeepakasBTG/frontend
Waiting: Gif song text updated
2026-02-02 20:50:58 +05:30
Deepak Salunke
8725ea8174 Waiting: Gif song text updated 2026-02-02 20:50:16 +05:30
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
michael
9c5b054dcc feat: Add Sonauto streaming audio on waiting page
Enable users to listen to their song while video generation continues
in the background. Backend proxies authenticated Sonauto stream API
since HTML audio elements cannot send auth headers.

- Add streaming_ready_at column to track when stream becomes available
- Enable streaming in Sonauto API request payload
- Handle GENERATING_STREAMING_READY webhook status
- Add /api/stream/{session_id} proxy endpoint using httpx
- Update StatusResponse with streaming_ready and task_id fields
- Add audio player UI with autoplay fallback for mobile
- Fade out audio gracefully before redirect to result page

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 08:23:14 -06:00
Deepak Salunke
c673e55090 Header & Footer changes 2026-02-01 21:23:08 +05:30
Harshad
9ae4bf63b3 fix(waiting): showTimeoutError UI 2026-02-01 10:59:29 +05:30
michael
5f9462a91f waiting: increase poll timeout to 10 minutes
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 09:17:51 -06:00
michael
f10f2e8226 frontend: use /back api base 2026-01-31 06:53:53 -06:00
Harshad
a39c57dbf6 waiting: replace gif with dynamic text 2026-01-31 12:59:18 +05:30
Harshad
c389677cc4 add localStorage fallback for session ID retrieval 2026-01-31 10:24:01 +05:30
michael
9d53adaaf3 Add backend API, video generator, and frontend updates
- Add Python/FastAPI backend with Celery workers
- Add video generation with FFmpeg (spinning record animation)
- Add API endpoints: submissions, status polling, webhook, results
- Add database schema and Alembic migrations
- Update frontend pages with API integration
- Add project documentation and spec

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 10:31:58 -06:00
Harshad
ed3d229c8f update opengraph tags 2026-01-30 12:10:19 +05:30
Harshad
83d589172c compress images & implement opengraph tags 2026-01-30 11:57:12 +05:30
Deepak Salunke
ba76773a47 Initial commit 2026-01-28 12:45:24 +05:30