Appearance
Listen together
Who: listener (host or participant). Hosting needs the listenTogether entitlement; non-entitled participants hear previews only.
Entry points
| Kind | Entry |
|---|---|
| REST | GET /me/together, POST /together/sessions, POST /together/sessions/join, GET /together/sessions/:id, POST …/leave, POST …/end, GET …/participants, POST …/host, POST …/invites, GET/POST …/playback, GET/POST …/queue, PATCH/DELETE …/queue/:itemId, GET/POST …/messages |
Socket /together | session:join, session:leave, playback:control, playback:state, queue:add, queue:reorder, queue:remove, chat:send, time:sync |
| Deep link | together (together/:code) |
| Push | together.invited |
Flow
- Host
POST /together/sessions { title?, maxParticipants?, listenersCanQueue? }→inviteCode; eventtogether.session.started. - Invite:
POST …/invites { userIds }→together.invitedpush (deep linktogether/:code), or share the link. - Join:
POST /together/sessions/join { inviteCode }orsession:join { inviteCode }→{ session, playback }; each participant's entitlement checked (previewOnly). Eventtogether.participant.joined; emitparticipant:joined. - Clock:
time:synca few times to compute the offset. - Host controls
playback:control { play | pause | seek | skip | jump | rate }→playback:syncedsnapshot (version only grows). Clients play atpositionMs + (now + offset − serverTimeMs) × rate. - Queue:
queue:add/reorder/remove(listeners only when allowed) →queue:updated. - Host transfer
POST …/host→host:changed. Chatchat:send(5 per 10 s). - End: host
POST …/end, everyone leaves, ortogether.idle-sweepafter 6 h →session:ended { reason }; eventtogether.session.ended.
Exit states
| State | Code | Actions | Client next |
|---|---|---|---|
| In sync | — | — | Follow playback:synced |
| Not present / unknown | TOGETHER_SESSION_NOT_FOUND | — | Leave the screen |
| Not host | TOGETHER_NOT_HOST | — | Hide controls |
| Full / ended | TOGETHER_SESSION_FULL, TOGETHER_SESSION_ENDED | — | — |
| Bad invite | TOGETHER_INVITE_INVALID | — | — |
| Queue | TOGETHER_QUEUE_FULL, TOGETHER_QUEUE_EMPTY, TOGETHER_QUEUE_ITEM_NOT_FOUND, TOGETHER_TRACK_UNAVAILABLE | — | — |
| Already hosting | TOGETHER_ALREADY_HOSTING | — | Open the existing one |
| Chat | TOGETHER_CHAT_RATE_LIMITED | wait | — |
Notifications
together.invited.
Known gaps
- Creative drops cannot schedule a listening party through together or live (I15).