Commit 3ec09358 authored by Aryan Noshirvnai's avatar Aryan Noshirvnai

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: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
parent 6c4cb3ed
Pipeline #1224 failed with stage
in 3 minutes and 19 seconds