Spec for Nvok
Audio only: the spec for Nvok
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
- 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.
- 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.
- What it shows:
- 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.
- 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.
- 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.
- 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:
- The embed (
app.arkengine.com/embed/<id>, hls.js 1.4.12) streams an HLS master with five video renditions, 1920x1080 down to 768x432. Each carries its own AAC track (avc1+mp4a). - There is no audio-only rendition, no
EXT-X-MEDIA TYPE=AUDIOgroup and no audio download. The page offers only "Download Video", the MP4. - The lightest rendition averages about 590 kbps, roughly 265 MB an hour. That's too much for a phone on cellular in the car.
Needed, per episode and per segment:
- The file. An audio-only file or rendition: AAC (M4A) at 64 to 96 kbps, or MP3 at 128 kbps. 64 kbps is about 29 MB an hour.
- Same timeline. It must be the same edit as the video, so a time stamp means the same moment in both.
- One of two forms:
- an audio-only variant in the episode's HLS master, which hls.js and Safari can both play;
- or a separate file URL stored on the video record (
audioUrl).
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:
- a chapter row can't seek;
- the scrubber shows no chapter marks;
- "Now playing" can't follow the audio.
The prototype shows titles and lengths only, and invents no start times.
How the player works
One <audio> element.
- It lives in the site's root layout (the Next.js app router layout), outside the page.
- A page change never stops it. The deck, the bar and the dialog are all views of that one element.
- Use a real media element (
<audio>, or hls.js attached to one), never Web Audio, so the browser's lock screen, background and Bluetooth handling apply.
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:
- Listen: pause the video, read its
currentTime, start the audio there and keep playing if the video was playing. - Watch: pause the audio and seek the video to the audio's
currentTime.
Don't start playback unprompted.
- No autoplay on load (CLAUDE.md rule 4). A page opened in Listen shows the deck paused.
- Never call
play()on focus, unlock orvisibilitychange. - After a phone call or another app takes the audio, stay paused until the reader presses play. Daily Wire reviewers complained of audio restarting after calls.
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.
| Field | Value | Example |
|---|---|---|
title | The episode or segment title. Once chapters have start times, the chapter playing | Ozempic fallout, EU's free speech crackdown and a doctor fights for freedom |
artist | The show, then its host | The HighWire ยท Del Bigtree |
album | The episode number, or "From episode N" for a segment | Episode 494 |
artwork | The show's key art, square, at 96, 192, 256 and 512px | the-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:
playandpause.seekbackward: 15 seconds.seekforward: 30 seconds (not live).seekto: the scrubber (not live).previoustrackandnexttrack: set tonull. Steering-wheel buttons must never jump to another episode; Spotify's Android Auto build did, and drivers complained.
Position: call setPositionState({ duration, playbackRate, position }) on timeupdate and after every seek. Live has no position state.
Test before launch, on real devices:
- iOS Safari in a tab, iOS as an installed web app, Android Chrome.
- CarPlay (Safari's audio reaches CarPlay's Now Playing; whether the metadata and buttons come through is unverified).
- Android Auto over Bluetooth. Chrome isn't an Android Auto media app, so expect the stereo's own screen: AVRCP metadata, steering-wheel play and skip.
Known WebKit bugs:
- 261858: in an installed web app, the lock-screen buttons stop after a track ends in the background. Still open.
- 291892: an installed web app goes silent after returning from the background. Reportedly fixed in iOS 26.2.
What's remembered
On the device (the prototype uses localStorage hw-listen):
prefer, "listen" or "watch". Once a reader presses Listen, every watch page opens in Listen until they press Watch, as on the Daily Wire and Spotify.now, what's playing:- the episode or segment id, with
:livefor the live stream; - its title, show, host, art and length;
- the position, speed, sleep timer and chapter;
- whether it's playing.
- The bar on every page reads this. Watch for that episode, or Stop listening, clears it.
- the episode or segment id, with
- The position, per episode. Store it as the reader goes, so a return picks up where they left off. Write it on pause and every 15 seconds while playing.
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.
--listen-switch-*: the switch.--deck-*: the deck.- Ground, ink, muted and line come from the feature navy.
--deck-play104 and--deck-skip72;--deck-btn-h56.--deck-faceis 48 on desktop and 136 at phone.- The layout tokens that turn the desktop row into the phone's single column, where the lists open in the face's slot.
--audio-*: the scrubber and the play button.--listen-bar-*: the bar.- 80px tall on desktop, 72 at phone.
--listen-bar-z25: over the sticky header, under the phone menu and every menu.
--listen-panel-*and--listen-backdrop: the pulled-up deck.--toast-lift: raises the confirmation note over the bar.
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
prototype/watch.html: the switch (#listen-switch, direction F only) at the top of the episode head. The old Audio only link stays for the other directions. The chat panel hasid="live-chat".prototype/js/listen.js, loaded on every page aftermember-actions.js. It builds the deck, the bar and the dialog, keepshw-listenand sets the Media Session. The prototype has no audio file: play, the skips, speed, the sleep timer and the chapters change only what the deck and the bar show. Listen starts the mock at 6:12, a stand-in for the video's second.prototype/css/components.css: the section "Audio only", after the live chat.
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
- Square artwork for each show, for the lock screen and the car.
- Segment start times within each episode, for the chapters.
- The watch page's Download (the ledger's open question): it could offer this same audio file.
- Following along in the transcript while listening (concept 4 on the sheet), later, once every episode has a timed transcript.