• Aryan Noshirvnai's avatar
    Add now-playing to live rooms: full song metadata + cross-user streaming · 58f8389f
    Aryan Noshirvnai authored
    Rooms could already chat, react, and request/pass the aux, but nobody
    could actually hear anything - now_playing only ever broadcast a bare
    song_id, there was no way to stream a song you didn't upload yourself
    (the DJ's pick usually isn't the listener's own library song), and the
    DJ could set a nonexistent song_id with no validation.
    
    Adds full song metadata (title/artist/album/coverart) to both the
    snapshot and now_playing_changed broadcasts, validates the song exists
    before setting it, and adds GET /social/rooms/{id}/stream - mirrors
    /soundmarks/{id}/stream's same "shared social content, not scoped to
    the uploader" reasoning - so any room member can actually play what the
    DJ picked.
    Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
    58f8389f
social.py 10.7 KB