• Aryan Noshirvnai's avatar
    Stream audio directly with a token query param instead of downloading a blob first · 27f06c50
    Aryan Noshirvnai authored
    Matches the backend fix: every fetchXStreamUrl (library, soundmarks, posts,
    live-location, rooms) used to fetch the entire audio file as a blob before
    handing <audio> a src, since a plain <audio src="..."> can't send an
    Authorization header - so playback couldn't start until the whole file had
    downloaded, and seeking didn't work at all. They now return a direct URL
    (api/client.ts's new buildStreamUrl, token as ?token=) that the browser
    streams natively - playback starts after the first buffered chunk, and
    seeking uses real Range requests. Removed the now-dead objectUrlRef/
    revokeObjectURL bookkeeping from PlayerContext.tsx.
    
    Also adds a General QOL column to the Roadmap page (streaming fix, plus
    grounded gaps found while looking: no volume control, no global error
    boundary, no offline handling, inconsistent loading states, playback state
    not persisted across reloads) and updates test counts.
    Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
    27f06c50
stream.ts 513 Bytes