Phase 13: questions, sounds and videos on the scoreboard
A game can now carry a list of items the host puts on the scoreboard one at a time: a question (shown above the standings, with an optional picture and an answer to reveal), a sound (played through the scoreboard's speakers) or a video such as a karaoke track (takes over the screen). - Media is a YouTube link, an https link to a file, or an upload to the private game-media bucket. The scoreboard API signs a URL only for the item that is on screen. - What is on screen is state on the event, like the timer, so the ping still carries no data. An unrevealed answer and a sound's or video's name never reach the scoreboard payload. - Control room: click an item to show it, or "Random" to have one picked (prefers items not played yet). Show/hide answer, pause, take off screen; shortcuts Q / A / X. - Duplicating a game or event copies its items and files; deleting removes the files. Needs supabase/migrations/0006_screen_items.sql applied before deploying. database.types.ts was edited by hand to match; re-run gen:types after. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+35
-1
@@ -40,6 +40,7 @@ live scoreboard, and judges score from their phones via links. Versatile enough
|
||||
- Quick presets: "Karaoke (5 × 1–5)", "Single score (0–10)", "Points (number)", "Win/Lose (0–1)".
|
||||
- Admin notes + judge notes (multiline).
|
||||
- "Teams buzz in" checkbox: this game uses the team buzzers (see 4.7).
|
||||
- Questions, sounds and videos to put on the scoreboard during the game (see 4.8).
|
||||
- Judges (judged games only):
|
||||
- Nominate judges by name → each gets a personal link (copy button + QR code).
|
||||
- Toggle the open link on/off; anyone opening it types their name and becomes a judge.
|
||||
@@ -73,8 +74,11 @@ This is the screen used during the night. Must be fast and hard to mess up.
|
||||
- "Open scoreboard" button (new tab) + "Reveal mode" button (see 4.3).
|
||||
- Buzzers (buzzer games only): who buzzed, in order, with each team's gap behind the first;
|
||||
"Got it" / "Wrong" for the team answering, "Undo" on a marked team, and "Next question".
|
||||
- On the scoreboard (games with questions, sounds or videos): the game's list, a button per item
|
||||
to show or play it, "Random" per kind, show/hide answer, pause/resume, take off screen (see 4.8).
|
||||
- Keyboard shortcuts: `N` next game, `P` prev game, `H` cycle visibility, `T` start/pause timer,
|
||||
`G` got it, `W` wrong, `B` next question (clears the buzzers), `?` help.
|
||||
`G` got it, `W` wrong, `B` next question (clears the buzzers), `Q` show the next question,
|
||||
`A` show/hide the answer, `X` take it off screen, `?` help.
|
||||
|
||||
### 4.3 Scoreboard (`/s/[token]`)
|
||||
- Projector-first, 16:9, readable from the back of a hall.
|
||||
@@ -150,6 +154,34 @@ For "first to answer" games. A game opts in with the "Teams buzz in" checkbox.
|
||||
whether scores are visible, frozen or hidden (the point itself follows the usual visibility rules).
|
||||
- The phone asks the browser to keep the screen on while the page is open.
|
||||
|
||||
### 4.8 Questions, sounds and videos on the scoreboard
|
||||
A game can carry a list of things the host puts on the scoreboard, one at a time.
|
||||
- Three kinds:
|
||||
- **Question** — text, an optional picture and an optional answer. Shows above the standings.
|
||||
- **Sound** — plays through the scoreboard's speakers; the screen only says "Listen…".
|
||||
Optional answer (e.g. the song's name).
|
||||
- **Video** — a karaoke track or a clip. Takes over the whole screen until taken off.
|
||||
- Media is a link or an upload:
|
||||
- a YouTube link (for a sound, only the audio is used), or an `https://` link to a file;
|
||||
- or a file uploaded from the setup page: image for a question, audio for a sound, video for
|
||||
a video, up to 50 MB each.
|
||||
- Setup: per game, add / edit / reorder / delete items. Duplicating a game or an event copies
|
||||
them, uploaded files included.
|
||||
- Control room: the current game's list. Click an item to put it on screen; clicking the one
|
||||
already showing starts it again. Only one item is on screen at a time, and switching game
|
||||
clears it.
|
||||
- **Random** (per kind, when there are at least two): picks one for the host — e.g. the next
|
||||
karaoke song. It prefers items that haven't been shown yet and never repeats the one on
|
||||
screen. Shown items get a ✓; "Clear the ✓ ticks" starts over.
|
||||
- **Show answer** (`A`) reveals the answer under the question or sound; again to hide it.
|
||||
- **Pause / Resume** for a sound or video. **Take off screen** (`X`) returns to the scoreboard.
|
||||
- `Q` shows the next question in list order.
|
||||
- Nothing here is a score, so it shows whether scores are visible, frozen or hidden.
|
||||
- Secrets stay on the server: an answer is not sent to the scoreboard until it is revealed, and a
|
||||
sound's or video's name is never sent (it is often the answer).
|
||||
- Sound needs the same "Turn sound on" click as the sound effects (4.6). Until then a video
|
||||
plays muted and the screen says the sound is off.
|
||||
|
||||
## 5. Non-functional
|
||||
- Live latency target < 1s on normal Wi-Fi.
|
||||
- Works with ~10 teams, ~20 games, ~10 judges per game without lag.
|
||||
@@ -162,3 +194,5 @@ For "first to answer" games. A game opts in with the "Teams buzz in" checkbox.
|
||||
- Per-game timers (stretch). The event countdown timer is in 4.5; team buzzers are in 4.7.
|
||||
- Buzzers for individual contestants, a configurable points value per correct answer, and
|
||||
penalties for a wrong answer (use the bonus/penalty panel).
|
||||
- Multiple-choice questions, questions on the judges' or teams' phones, importing a list of
|
||||
questions from a file, and seeking within a video from the control room.
|
||||
|
||||
Reference in New Issue
Block a user