tvos: catch up with the Android TV app #33

Merged
namillis merged 2 commits from feat/tvos-android-parity into main 2026-11-20 04:58:52 +00:00
Owner

Brings the Apple TV app up to the Android TV app, from an audit of LiveWireTV's code against the tvOS target (24 gaps, 10 likely bugs). All but three are done here. Builds on #32 (merged).

Player

  • Time shift keeps going. Near the end of what was recorded when it opened, or when that stream ends, the archive reopens from the playhead to now; within a minute of live it goes live (PlayerScreen.continueTimeShift). Before, the picture froze there.
  • Reload, and a click on a failed catch-up stream, retry the archive where it was instead of going live.
  • Catch-up keeps its overlay up. Holding ◀▶ on the bar keeps seeking.
  • The first pause of a channel without catch-up explains that it can't rewind.
  • ▲▼ record Recently watched, and fall back to the channel's own list when it left the zap list (just unfavorited).
  • The Channels panel dims the video and shows the focused channel's programme.
  • Plainer 404 messages.

App

  • Refresh: the channel list (after 10 min, not while watching), the guide (after 30 min, which also moves its window on, so an app left running overnight doesn't show yesterday) and Live Sports refresh when the app comes back and when Home or the Guide opens.
  • Failover: "X isn't responding. Using Y." now shows; the main provider is checked every 30 s and the app switches back with "X is back."
  • Toasts: favorite confirmations from the channel menu, Channel info and Options. The channel menu closes after the toggle.
  • Settings: Manage favorites (move, remove, unavailable channels), Subtitles (size up to extra large, text color, box or outline, with a sample), Guide window 2–8 h, and Back returns to the row that opened a sub-screen.
  • Guide: loading and error text instead of "No channels match"; past listings refetch after 15 min and retry after a failure; All channels sits under Favorites; with a keyword, "Search all · N found" widens it to every channel, and the empty grid offers the same.
  • Game page: Watch from start for a live game on a catch-up channel, and the pool's event note.
  • Search: a Clear chip for the history, and a query counts as recent when you leave Search.
  • Providers: an M3U playlist's full URL (which can hold a login) is no longer shown, only its host and file.
  • Catch-up URLs use the server's time zone from server_info (UTC on the pool, so no change there).

Shared code

  • PlaybackController: timeShift, retryArchive(), play(stream:from:at:timeShift:).
  • SportsList.fromStart, CaptionPrefs text color and background (defaults keep today's look on the iPhone), PoolClient.serverZone.

Not done

  • M3U catch-up templates and per-stream headers (large; the pool is Xtream).
  • Keeping favorites when an M3U channel's URL changes.
  • A "show now-playing in lists" setting.

Tests

  • build/check.sh: tvOS builds, LiveWireTests pass (208, with new SportsFromStartTests).
  • LiveWireTVUITests: new TVSettingsPagesUITests (move and remove favorites, subtitle style), the Guide's Search all, and the Home menu's toast. The full run had 19 of 20 passing; the catch-up seek test is timing-sensitive (the seek target shows for under a second) and passed on rerun.
  • Not covered by a test: the failover switch-back and the time-shift reopen, which need a provider outage and a long wait.
  • Installed on the Apple TV.
Brings the Apple TV app up to the Android TV app, from an audit of LiveWireTV's code against the tvOS target (24 gaps, 10 likely bugs). All but three are done here. Builds on #32 (merged). ## Player - **Time shift keeps going.** Near the end of what was recorded when it opened, or when that stream ends, the archive reopens from the playhead to now; within a minute of live it goes live (`PlayerScreen.continueTimeShift`). Before, the picture froze there. - Reload, and a click on a failed catch-up stream, retry the archive where it was instead of going live. - Catch-up keeps its overlay up. Holding ◀▶ on the bar keeps seeking. - The first pause of a channel without catch-up explains that it can't rewind. - ▲▼ record Recently watched, and fall back to the channel's own list when it left the zap list (just unfavorited). - The Channels panel dims the video and shows the focused channel's programme. - Plainer 404 messages. ## App - **Refresh:** the channel list (after 10 min, not while watching), the guide (after 30 min, which also moves its window on, so an app left running overnight doesn't show yesterday) and Live Sports refresh when the app comes back and when Home or the Guide opens. - **Failover:** "X isn't responding. Using Y." now shows; the main provider is checked every 30 s and the app switches back with "X is back." - **Toasts:** favorite confirmations from the channel menu, Channel info and Options. The channel menu closes after the toggle. - **Settings:** Manage favorites (move, remove, unavailable channels), Subtitles (size up to extra large, text color, box or outline, with a sample), Guide window 2–8 h, and Back returns to the row that opened a sub-screen. - **Guide:** loading and error text instead of "No channels match"; past listings refetch after 15 min and retry after a failure; All channels sits under Favorites; with a keyword, "Search all · N found" widens it to every channel, and the empty grid offers the same. - **Game page:** Watch from start for a live game on a catch-up channel, and the pool's event note. - **Search:** a Clear chip for the history, and a query counts as recent when you leave Search. - **Providers:** an M3U playlist's full URL (which can hold a login) is no longer shown, only its host and file. - **Catch-up URLs** use the server's time zone from `server_info` (UTC on the pool, so no change there). ## Shared code - `PlaybackController`: `timeShift`, `retryArchive()`, `play(stream:from:at:timeShift:)`. - `SportsList.fromStart`, `CaptionPrefs` text color and background (defaults keep today's look on the iPhone), `PoolClient.serverZone`. ## Not done - M3U catch-up templates and per-stream headers (large; the pool is Xtream). - Keeping favorites when an M3U channel's URL changes. - A "show now-playing in lists" setting. ## Tests - `build/check.sh`: tvOS builds, `LiveWireTests` pass (208, with new `SportsFromStartTests`). - `LiveWireTVUITests`: new `TVSettingsPagesUITests` (move and remove favorites, subtitle style), the Guide's Search all, and the Home menu's toast. The full run had 19 of 20 passing; the catch-up seek test is timing-sensitive (the seek target shows for under a second) and passed on rerun. - Not covered by a test: the failover switch-back and the time-shift reopen, which need a provider outage and a long wait. - Installed on the Apple TV.
Player
- Time shift keeps going: near the end of what was recorded, or when that
  stream ends, the archive reopens from the playhead to now; within a minute
  of live it goes live (PlayerScreen.continueTimeShift).
- Reload and a click on a failed catch-up stream retry the archive where it
  was, not live. Catch-up keeps its overlay up. Holding ◀▶ on the bar keeps
  seeking. The first pause of a channel without catch-up explains it can't
  rewind. Plainer 404 messages.
- ▲▼ record Recently watched, and fall back to the channel's own list when it
  left the zap list. The Channels panel dims the video and shows the focused
  channel's programme.

App
- The channel list (after 10 min), the guide (after 30 min, which also moves
  its window on) and Live Sports refresh when the app comes back and when
  Home or the Guide opens.
- Failover: "X isn't responding. Using Y." shows, the main provider is checked
  every 30 s and the app switches back with "X is back."
- Favorite toasts from the menu, Channel info and Options; the channel menu
  closes after the toggle.
- Settings: Manage favorites (move, remove, unavailable channels), Subtitles
  (size up to extra large, text color, background or outline, with a sample),
  Guide window 2–8 h, and Back returns to the row that opened a sub-screen.
- Guide: loading and error text instead of "No channels match"; past listings
  refetch after 15 min and retry after a failure.
- Game page: Watch from start on a catch-up channel for a live game, and the
  pool's event note. Search: Clear chip, and a query counts as recent when
  you leave. Providers no longer shows an M3U playlist's full URL.
- Catch-up paths use the server's time zone from server_info (UTC on the pool).

Tests: SportsFromStartTests, TVSettingsPagesUITests, Home toast and menu.
- All channels moves up to second in the category column, as on Android.
- With a keyword, the column offers "Search all · N found" (the same keyword
  over every channel), and the empty grid says nothing in the list matches
  and that a click searches all channels.
- TV UI test: a keyword with no favorite matches, then Search all.
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!33
No description provided.