rspace-online/backlog/tasks/task-118.9 - Add-lightweigh...

1.3 KiB

id title status assignee created_date updated_date labels milestone dependencies parent_task_id priority
TASK-118.9 Add lightweight sync to rtube (shared playlists/watch parties) Done
2026-03-16 00:06 2026-03-16 00:50
multiplayer
tier-3
Multiplayer Everything
TASK-118 low

Description

rtube is a community video hosting UI. Add Automerge sync for shared playlists and watch party queue state.

New files:

  • modules/rtube/schemas.ts — TubeDoc with playlists, watchParty, queue
  • modules/rtube/local-first-client.ts — CRUD: createPlaylist, addToPlaylist, updateQueue

Schema:

TubeDoc {
  meta: { module: 'tube', collection: 'playlists', version: 1 }
  playlists: Record<string, { id, name, videoIds[], createdBy, updatedAt }>
  watchParty: { active: boolean, currentVideoId, position, hostDid, participants[] }
  queue: string[]
}

Acceptance Criteria

  • #1 Playlists sync across space members
  • #2 Watch party state (current video, position) syncs in real-time
  • #3 Demo mode works with local-only state

Implementation Notes

schemas.ts + local-first-client.ts created