tvos: catch-up seeking and time shift in the player #30

Merged
namillis merged 1 commit from feat/tvos-catchup into main 2026-11-20 02:14:57 +00:00
Owner

Catch-up seeking and time shift in the Apple TV player (mockup 06).

Catch-up

  • Past programmes started from the Guide (or Start over) show the archive overlay: the ARCHIVE badge, "Aired today 5:00 AM · watching 1:47:12 of 3:00:00", and a scrub bar with what has aired, the position and the pending seek target.
  • Keys follow LiveWireTV's PlayerInput (archive mode):
    • ▼ selects the bar; ◀▶ then seek in steps that grow 10 s → 30 s → 1 → 2 → 5 → 10 min while you keep pressing, with the target and step shown over the thumb.
    • A click seeks at once; ▲ goes live; ▼ or Back release the bar.
    • With the bar released, ◀▶ still open Channels and Options.

Time shift

  • Pausing a live channel that has catch-up shows "Paused at 8:12 AM · 2 min behind live".
  • Resuming within 10 s carries on live. Later, the archive plays from the pause, behind live; the overlay says how far.
  • Seeking while paused switches to the archive at the pause and steps from there.

Shared

  • PlaybackController.play(stream:from:at:) starts catch-up at a time inside the programme: it opens on the minute (as the pool requires) and seeks the rest in. The iPhone's calls are unchanged.

Tests

  • build/check.sh: tvOS builds, LiveWireTests pass (205).
  • LiveWireTVUITests: 15 pass. New TVCatchupUITests on ESPN: catch-up from the Guide, bar select, seek target, release, Go live; pause live, resume behind live, Go live.
  • Installed on the Apple TV.
Catch-up seeking and time shift in the Apple TV player (mockup 06). ## Catch-up - Past programmes started from the Guide (or Start over) show the archive overlay: the ARCHIVE badge, "Aired today 5:00 AM · watching 1:47:12 of 3:00:00", and a scrub bar with what has aired, the position and the pending seek target. - Keys follow LiveWireTV's `PlayerInput` (archive mode): - ▼ selects the bar; ◀▶ then seek in steps that grow 10 s → 30 s → 1 → 2 → 5 → 10 min while you keep pressing, with the target and step shown over the thumb. - A click seeks at once; ▲ goes live; ▼ or Back release the bar. - With the bar released, ◀▶ still open Channels and Options. ## Time shift - Pausing a live channel that has catch-up shows "Paused at 8:12 AM · 2 min behind live". - Resuming within 10 s carries on live. Later, the archive plays from the pause, behind live; the overlay says how far. - Seeking while paused switches to the archive at the pause and steps from there. ## Shared - `PlaybackController.play(stream:from:at:)` starts catch-up at a time inside the programme: it opens on the minute (as the pool requires) and seeks the rest in. The iPhone's calls are unchanged. ## Tests - `build/check.sh`: tvOS builds, `LiveWireTests` pass (205). - `LiveWireTVUITests`: 15 pass. New `TVCatchupUITests` on ESPN: catch-up from the Guide, bar select, seek target, release, Go live; pause live, resume behind live, Go live. - Installed on the Apple TV.
- Catch-up (from the Guide's past programmes or Start over) shows the archive
  overlay: aired time, "watching 1:47:12 of 3:00:00", and the scrub bar with
  what has aired, the position and the pending seek target and step.
- PlayerInput's archive keys: Down selects the bar, Left/Right seek in steps
  that grow 10 s → 30 s → 1 → 2 → 5 → 10 min, a click seeks at once, Up goes
  live, Down or Back release the bar.
- Time shift: pausing a live channel with catch-up shows "Paused at …"; a
  resume within 10 s carries on live, later it plays the archive from the
  pause, behind live. Seeking while paused does the same and steps from there.
- Shared: PlaybackController.play(stream:from:at:) starts catch-up at a time
  inside the programme (opens on the minute, seeks the rest).
- TV UI tests for catch-up from the Guide, the bar and Go live, and for
  pausing live and resuming behind live.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
namillis/LiveWireiOS!30
No description provided.