← Board
SC-23TasksThe Rooms · Audio and Video

A basic player in the video room

One page, the two videos already in the rack, nothing clever yet.

Enough of a room to stand in. The two ids already in src/lib/jukebox.ts move across as its first two shows, so nothing new has to be sourced to see whether the format works.

Waiting on SC-22 for the route.

Reuse the embed, do not write a second one

src/app/jukebox/rack.tsx already builds the frame only when a visitor picks something, and /privacy says so in as many words: "Pressing Stop removes the frame." That sentence is a claim about this code. A second embed path that loaded Google's iframe on arrival would make the privacy page untrue without anyone editing it.

One at a time

A wall of embeds needs a rule or scrolling past a playing video leaves sound behind, and starting a second gives you two. Starting one stops whatever else is playing.

That rule is also the seam the audio room has to meet later: whatever pauses a video for another video is what pauses the jukebox for a video.