Handoff home

Spec for Nvok, from handoff/AUDIO-SPEC.md

Spec for Nvok

Audio only: the spec for Nvok

Updated October 19, 2026. The same file as Markdown

v1.1, ledger item 9. Designed on October 19, 2026. Jeremy picked two concepts to run together, the deck and the bar. The concept sheet is screenshots/concepts/audio-only/sheet.png and the peer study is screenshots/concepts/audio-only/peers.md. Screens are in screenshots/v1.1/audio-only/.

The main use is a phone in the car, listening like a podcast. So the phone came first, and every control is built for a glance from a dashboard mount.

What the reader gets

  1. Watch and Listen, two labeled buttons right under the player on every watch page (#listen-switch).
    • They replace the old Audio only link; Download stays where it was.
    • The pressed button is ink on light and carries aria-pressed.
    • Each is 44px tall on desktop; at phone they run full width at 48px.
  2. The deck. Listen turns the frame into a dark panel on the feature navy.
    • What it shows:
      • The host's face and the show.
      • The chapter playing, in large type.
      • The scrubber.
      • Back 15, play and forward 30, at 72, 104 and 72px, each skip with its word under it.
      • Speed, Sleep and Chapters.
    • At phone the deck fills the first screen under the header. The face is large where the picture was, and the controls sit in the bottom half, in thumb reach. Chapters and Sleep open their lists in the face's place.
    • On desktop the deck fills the 16:9 frame, with the chapters list beside the controls.
  3. The bar. While something plays, a bar holds the foot of every page.
    • It carries the art, the title, play and forward 30.
    • Desktop adds back 15, the scrubber, speed, Watch and Stop.
    • It appears on the watch page too, once the deck scrolls out of view.
    • The page gains bottom padding the bar's height, and the confirmation note rides above the bar.
  4. The deck, pulled back up. A tap on the bar's art or title brings the deck back.
    • On its own watch page, it scrolls back to the deck.
    • Anywhere else, the deck opens as a modal dialog: the whole screen at phone, a 400px panel just over the bar on desktop.
    • The dialog's head has Close and Episode page; its foot has Watch the video and Stop listening.
    • Escape closes it and returns focus to the bar.
  5. Live (The HighWire, Thursdays at 1 pm PT; The Download, Mondays at 11 am PT).
    • The kicker reads Live, "Since 1 pm PT".
    • No scrubber, no forward and no speed. Forward becomes Go live, which returns to the live point after a pause or a skip back.
    • At phone, Chapters becomes Live chat, which scrolls to the chat under the episode head.
    • On desktop, the chat keeps its column beside the deck.
    • Off The Record is never live.
  6. A single segment (watch.html?seg=) gets the deck with no chapters.

The audio source: what Ark has to provide

Today Ark has nothing to play. Checked on October 19 against episode 498:

Needed, per episode and per segment:

Needed for live: an audio-only rendition in the live stream's HLS ladder, with the same DVR window as the video, so back 15 and Go live work.

Also needed: chapter start times. Chapters are the episode's segments, with their real titles and lengths. Nothing records where each one starts within the full episode. Each segment needs a startTime (seconds into the episode) on its record. Until then:

The prototype shows titles and lengths only, and invents no start times.

How the player works

One <audio> element.

Why not hide the video? On iOS, Safari pauses a <video> when the phone locks or the reader leaves Safari, while an <audio> element keeps playing. Android browsers keep both.

Switching keeps the same second both ways:

Don't start playback unprompted.

Speed: 0.75, 1, 1.25, 1.5 and 2. The button shows the current speed (the prototype cycles 1, 1.25, 1.5, 2, 0.75). Not offered live.

Sleep timer: Off, 15 minutes, 30 minutes, 1 hour and End of episode. When it runs out, pause; don't stop or clear the bar. The button shows the time left in words (30 min).

The lock screen and the car (Media Session API)

Set these whenever something plays, and update them when the chapter, the play state or the episode changes. NPR's site sets the title only, so a car shows a bare headline; don't repeat that.

FieldValueExample
titleThe episode or segment title. Once chapters have start times, the chapter playingOzempic fallout, EU's free speech crackdown and a doctor fights for freedom
artistThe show, then its hostThe HighWire ยท Del Bigtree
albumThe episode number, or "From episode N" for a segmentEpisode 494
artworkThe show's key art, square, at 96, 192, 256 and 512pxthe-highwire-512.jpg

The artwork needs new cuts. Only 16:9 and 2:3 cuts of the key art exist (img/art/<show>.jpg, -phone.jpg). A square cut of each show's art, keeping its wordmark whole, is still to be made. iOS uses the 512px image; Android uses 512, or 256 on low-end phones.

Action handlers:

Position: call setPositionState({ duration, playbackRate, position }) on timeupdate and after every seek. Live has no position state.

Test before launch, on real devices:

Known WebKit bugs:

What's remembered

On the device (the prototype uses localStorage hw-listen):

Signed in, prefer and the per-episode positions can follow the account later, in the member record in Payload. That's not part of November.

Tokens

Every value is a token in tokens.css. The root holds the desktop values beside the watch page's own tokens; the phone values sit in the v1.1 new-pages phone block at the end of the file.

The deck's dark ground is the feature navy Brand 5 already has, chosen for night driving. On that ground the ink measures 14.7:1 and the muted text 9.4:1 (measured in the prototype).

Where it is in the prototype

To try it: open a watch page, press Listen, scroll down, then open home or an article. Tap the bar to pull the deck back up.

Not settled