Radio: stream from the live offset directly instead of seeking after the fact
The old /radio/{id}/stream always served the file from byte 0 and relied on
the frontend seeking afterward once it knew the duration - a visible delay
before any audio played, and meaningless for a live broadcast with no stable
timeline to seek within anyway. stream_audio_from_offset uses ffmpeg's
demuxer-level -ss (seeks before decoding, -acodec copy avoids a re-encode) so
the response itself starts exactly where the station actually is right now.
Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
Showing
Please
register
or
sign in
to comment