Introducing a new way to review your PRs.

Read the announcement

4gray / iptvnator

:tv: Cross-platform IPTV player application with multiple features, such as support of m3u and m3u8 playlists, favorites, TV guide, TV archive/catchup and more.

View on GitHub

26 documents · Updated Nov 23, 2026

docs / television-browsing-and-playback

Television browsing and playback

The TV feature lets viewers use their own IPTV sources on a television. It joins source setup, provider catalogs, live channels, programme guides, native playback, metadata, local viewing state, and remote-focused controls in one viewing path. It is a separate TV client with its own viewing state and runtime; see Television client for the wider product boundary.

TV feature boundary

The feature joins source access, catalog browsing, playback, metadata, saved viewing state, and focus control into one viewing path. It keeps provider data and playback commands separate from the screen model so the same flow can work with different source types. References: apps/…/main.tsx• L1-11, apps/…/PRODUCT.md• L22-30, libs/…/app.tsx• L31-60

The main path moves through source setup, provider connection, content discovery, selection, and playback. A source change resets the active browsing context. A newer request also replaces older work so data from one source or screen does not appear in another.

This diagram shows how a viewer’s source becomes browsable content and then a playing stream.

flowchart LR
    A[Set up source] --> B[Connect backend and provider]
    B --> C[Browse catalog or live channels]
    C --> D[Open details or guide]
    D --> E[Resolve stream]
    E --> F[Play in native TV video]
    F --> G[Save local progress or favorite]

References: libs/…/use-tv.ts• L61-89 libs/…/use-tv.ts• L166-239 libs/…/index.ts• L198-215

Source setup and provider access

Source setup

Source setup gives the TV the provider address and account data needed to browse content. Viewers can add Xtream, Stalker/Ministra, or M3U sources. They can enter these details on the TV or use a short-lived phone pairing flow that reduces remote typing.

The TV uses a selected IPTVnator backend for provider requests and identity checks. The backend is a connection boundary, not a media relay. A direct-access check can help separate provider access problems from native media access problems without changing the selected backend. Source selection stops active playback and saves the new active source before the UI returns to Home.

References: libs/…/index.ts• L8-29 libs/…/phone-setup.tsx• L61-90 libs/…/phone-setup.tsx• L147-205 libs/…/use-tv.ts• L335-355 libs/…/source-selection.ts• L10-35 libs/…/direct-probe.tsx• L9-15

Provider access

Each provider presents a common capability set for connection, catalogs, details, episodes, programme data, and stream resolution. This lets the feature use one browsing model while each provider keeps its own rules for IDs, categories, episode data, and playback.

Xtream and Stalker provide live, film, series, and guide access. Stalker can also expose series through its video-on-demand catalog. M3U provides live and on-demand entries from a playlist but does not provide series or programme-guide data. Playback still depends on the stream format supported by the TV device.

References: libs/…/index.ts• L96-118 libs/…/index.ts• L10-19 libs/…/xtream.ts• L23-29 libs/…/stalker.ts• L31-38 libs/…/m3u.ts• L17-23 apps/…/PRODUCT.md• L49-56

Shared source library

An optional home server can supply source definitions to more than one client. The TV must explicitly connect the library or choose to copy a local source to it. This shares connection details only; favorites, history, and resume positions remain on the TV. The TV refreshes shared sources when it starts, returns to the app, and at a regular interval when it is not playing.

References: libs/…/library-settings.tsx• L16-91 libs/…/library-settings.tsx• L93-129 libs/…/home-server.tsx• L5-18 libs/…/home-server.tsx• L29-71 libs/…/index.ts• L132-138

Catalog browsing and discovery

Catalog navigation

Catalog navigation turns provider records into common media items for live channels, films, series, and episodes. The TV combines search, category filters, paging, and source-specific sort choices. Film and series lists can use recently added items, title order, or provider order. When a provider lacks added dates, the UI states which fallback order it uses. The active source stays part of the item identity, so a title from one source cannot silently act as a title from another.

Search accepts the entered title and an equivalent form with changed punctuation or diacritics. This helps a viewer find provider titles that use a different spelling without changing the provider’s stored title.

References: libs/…/screens.tsx• L172-255 libs/…/catalog-order.tsx• L5-71 libs/…/index.ts• L30-85 libs/…/xtream.ts• L72-118 libs/…/m3u.ts• L58-83

Details and series context

Details give a viewer enough context to choose a title. A series adds seasons and episodes with a clear description and optional episode artwork. The detail view also presents compact metadata and optional cast or creator links. An episode keeps a link to its exact parent series so Home, playback, and saved progress can show the series context without changing the episode’s provider identity or playback command.

The episode view presents one focused episode at a time beneath a horizontal season rail. A viewer can play the focused episode or open a small action menu to mark it watched, reset progress, or start over. Long seasons keep the selected and visible parts of the rail active while preserving scroll space, so remote focus can move without requiring every episode card to stay mounted.

The feature can recover missing series context for older saved episodes. It searches the active provider for the exact parent identity and does not invent a parent from a title alone. This allows a saved episode to reopen its series while preserving its existing playback data. If recovery fails, the episode remains available and the viewer can retry the series lookup.

References: libs/…/detail.tsx• L19-43 libs/…/detail.tsx• L63-219 libs/…/episode-rail.tsx• L50-217 libs/…/episode-card.tsx• L9-78 libs/…/series-context.ts• L3-93 libs/…/use-series-context.ts• L11-84 libs/…/use-series-details.ts• L53-124 libs/…/parent-series.ts• L9-79

Person filmography

When metadata includes cast or creator links, a viewer can open a person page and browse that person’s films and series. Choosing a credit searches the active provider catalog rather than sending the viewer to an external playback service.

The lookup checks the provider’s complete result set and compares title and year before opening a match. If more than one provider version is valid, the viewer chooses one. If the search is incomplete, the TV reports that availability is unknown instead of claiming that the title is absent.

References: libs/…/metadata-credits.tsx• L4-47 libs/…/person-page.tsx• L49-165 libs/…/filmography-search.ts• L80-152 libs/…/use-filmography-search.ts• L52-87 libs/…/filmography.test.ts• L46-94 libs/…/filmography-providers.test.ts• L31-87

Live viewing and playback

Live channel browsing

Live browsing separates channel discovery from playback. A viewer can move through categories and channel rows without losing the current stream. Selecting a channel starts or changes the preview. Selecting the playing channel again opens fullscreen playback.

The live player keeps channels, programme details, and the TV Guide available as overlays over the current channel. The playlist view returns to the current channel without restarting it. A guide choice changes the stream only when the viewer chooses to play that channel. Programme data is optional, so a guide failure does not stop live playback.

References: libs/…/live.tsx• L5-155 libs/…/live-channels.tsx• L4-137 libs/…/live-overlay.tsx• L11-97 libs/…/use-live-browse.ts• L11-128 libs/…/use-player-playlist.ts• L6-48 libs/…/app.tsx• L243-295

Stream playback

Playback resolves a fresh provider stream only after the active source is ready. The native video element then plays that address. Xtream can use a direct movie address when one exists. Stalker can resolve live, film, or episode commands and can signal when stream credentials must accompany playback. M3U can play a playlist URL when the stream is not DRM protected.

The fullscreen player gives live viewing access to channels and guides. On-demand viewing adds play, pause, seek, resume, and series-detail actions. For an episode, playback can show an Up next card near the end and can autoplay the next episode when that preference is enabled. The viewer can also return to the series details or save the current title without leaving the player. These controls sit above the device’s native video support rather than replacing it.

References: libs/…/xtream.ts• L193-238 libs/…/stalker.ts• L205-270 libs/…/m3u.ts• L85-101 libs/…/native-player-view.tsx• L33-87 libs/…/native-player-view.tsx• L144-243 libs/…/up-next-card.tsx• L34-47 libs/…/use-tv.ts• L175-249 libs/…/use-playback-origin.ts• L12-25 apps/…/PRODUCT.md• L49-63

Playback continuity

On-demand playback restores a saved position after the media can seek. It saves progress during playback and when the viewer pauses or leaves. Live playback has no seek position. Playback errors offer a retry path. Codec, header, DRM, and device support remain constraints of the native TV player.

Viewing state has three user-facing states: unwatched, in progress, and watched. A position at or above the watched threshold is shown as watched. Viewers can mark a title watched, mark it unwatched, reset its progress, or start an episode over. Each explicit state change advances the saved revision so an older player session or retry cannot overwrite a newer choice.

Episode continuation uses the same saved positions as the rest of the TV feature. The Up next card appears only when the current episode has a known successor and is close to its end. It can show the successor’s saved partial progress, remain hidden when another player panel covers it, and shrink after it has been visible. Back dismisses it for the current episode pair. Autoplay remains a separate preference, so hiding the card does not disable automatic continuation.

References: libs/…/watch-state.ts• L8-42 libs/…/watch-state.ts• L106-138 libs/…/watch-actions.tsx• L14-31 libs/…/watch-actions.tsx• L81-133 libs/…/native-player-view.tsx• L112-249 libs/…/up-next-card.tsx• L40-73 libs/…/up-next.ts• L45-72 libs/…/up-next.ts• L121-147 libs/…/user-data.ts• L13-69 libs/…/use-tv.ts• L265-289 libs/…/index.ts• L120-157

Programme guides and metadata

Programme guides

The programme guide presents provider schedules beside a selected live channel. The compact guide shows current and upcoming programmes. The expanded guide supports dates, programme selection, and descriptions. The multi-channel TV Guide supports broader channel browsing.

Guide data is requested for the current channel and source. A newer selection cancels the old request. Provider schedules can combine a wider schedule with a short current schedule so the guide remains useful when one schedule is incomplete. Missing or failed schedule data leaves the channel playable and shows an explicit guide status instead.

References: libs/…/programme-guide.tsx• L29-278 libs/…/live.tsx• L93-151 libs/…/live-overlay.tsx• L100-173 libs/…/grid-guide.tsx• L43-112 libs/…/use-content.ts• L162-187 libs/…/index.ts• L86-90 libs/…/stalker.ts• L160-203

Metadata enrichment

Provider data remains the base for titles, IDs, episodes, and streams. Optional TMDB metadata adds artwork, descriptions, cast, creators, and title facts after the provider item is available. The detail view exposes this data as compact facts and person links. It uses a confident title match for provider-neutral films and series, and it only patches editorial fields. Source identity, provider IDs, raw playback data, and live selections stay unchanged.

Episode enrichment uses the series match and its marked season to choose the external episode list. It merges names, plots, and still images by episode number while preserving provider episode IDs, raw playback data, and episodes that do not match. Metadata calls have a time limit and can be cancelled. Missing, failed, or cancelled metadata leaves the provider episode list usable.

References: libs/…/tmdb.ts• L35-51 libs/…/tmdb.ts• L59-195 libs/…/tmdb.ts• L198-279 libs/…/metadata-chips.tsx• L1-15 libs/…/metadata-credits.tsx• L4-47 libs/…/use-metadata.ts• L5-50 libs/…/use-episode-metadata.ts• L5-60 libs/…/detail-metadata.ts• L51-107 libs/…/tmdb-settings.tsx• L62-75 libs/…/tmdb.test.ts• L16-127 libs/…/tmdb-episodes.test.ts• L31-203

Local library state and Home

Local viewing state

Local TV state stores sources, the active source, backend settings, favorites, recent viewing, independent resume positions, catalog preferences, Home layout, guide preference, metadata settings, and episode-continuation preferences. It is the durable record for personal viewing behavior.

Recent viewing is bounded while unfinished positions remain available on their own. Continue watching excludes live items and finished content. It keeps the newest unfinished item for each series and keeps equal provider IDs separate when they belong to different sources. Removing a source also removes its favorites, history, and positions for that source. Storage writes must finish before the UI treats a change as saved.

Favorites can show all saved sources or only the active source. Items from an unavailable source remain identifiable in the all-source view, but the TV does not try to play them until that source is restored. Favorite views group movies, series or episodes, and live TV, and they preserve the source name used to explain an unavailable item.

References: libs/…/index.ts• L132-173 libs/…/index.ts• L218-274 libs/…/continue-watching.ts• L3-34 libs/…/watch-state.ts• L106-138 libs/…/user-data.ts• L13-97 libs/…/favorites.tsx• L11-161 libs/…/use-tv.ts• L308-351 libs/…/continue-watching.test.ts• L115-166 libs/…/continue-watching.test.ts• L243-275

Home composition

Home gives the active source a short path into viewing. It can feature an unfinished title, show Continue watching, list favorites, and offer compact rails for films, series, and live channels. Episode entries use recovered series context when available, so a viewer can return to the right story.

Home actions can open or play a title from another saved source. The TV activates that exact source first, waits for it to become ready, and lets the viewer cancel the request. A missing source or failed connection leaves a clear recovery action instead of starting playback with stale source data.

The featured Home title can show a resume action, the source name, and a count of unfinished titles. Horizontal rails expose their overflow only when content remains outside the viewport. Large poster, station, channel, and episode collections keep the data loaded while rendering only the visible window, which supports fast remote movement without changing the logical order of the catalog.

Artwork is optional. The TV accepts safe provider artwork and can recover stored Stalker artwork for older saved items. Missing images use text, an icon, or a channel fallback so artwork does not control whether a title can be browsed.

References: libs/…/use-home-feature.ts• L11-77 libs/…/use-source-actions.ts• L38-105 libs/…/use-source-actions.ts• L106-167 libs/…/use-source-actions.ts• L169-301 libs/…/home-source-status.tsx• L1-12 libs/…/screens.tsx• L14-168 libs/…/hero.tsx• L8-143 libs/…/horizontal-rail.tsx• L5-99 libs/…/virtual-collection.tsx• L10-317 libs/…/resume-card.tsx• L3-67 libs/…/channel-card.tsx• L3-47 libs/…/stored-artwork.ts• L4-29

Remote interaction and settings

Screen navigation

The screen model covers Home, live TV, films, series, favorites, search, sources, settings, details, and person pages. Detail and person visits keep an origin so Back returns the viewer to the prior item and scroll position. Switching sources clears that history because its items no longer belong to the current source.

References: libs/…/navigation.ts• L2-38 libs/…/use-route-history.ts• L5-25 libs/…/use-source-navigation.ts• L5-30 libs/…/page-header.tsx• L4-74

Remote focus

Directional focus is the main interaction state for the TV. Arrow keys choose the nearest visible control, stable focus keys restore the last useful control, and virtual collections keep large catalogs usable without mounting every item. Horizontal rails provide pointer-only page controls while remote focus stays on the media cards. Select controls open remote-friendly dialogs with filtering and bounded movement.

TV text fields remain read-only while a viewer moves focus through a form, so focus does not open the on-screen keyboard by itself. Enter, a click, or a physical edit key starts editing. Backspace acts as Back until the field is editable, while form submission temporarily restores field validation. This keeps remote navigation and text entry separate without blocking normal input.

Back closes a live overlay before it leaves the player or screen. It also returns from the live playlist to fullscreen playback without restarting the channel. Stop ends playback. Media keys and Space control the native player without triggering the focused form control; Space remains available on the seek slider. Dialogs keep focus inside the open panel and return it to the control that opened them. The settings area uses the same rules while grouping connection, library, appearance, guide, playback, metadata, remote, and device information preferences.

References: libs/…/focus.ts• L8-67 libs/…/focus.ts• L68-201 libs/…/ime-guard.ts• L1-123 libs/…/use-tv-remote.ts• L6-48 libs/…/player-controls.ts• L2-34 libs/…/horizontal-rail.tsx• L49-97 libs/…/virtual-collection.tsx• L63-269 libs/…/select.tsx• L8-194 libs/…/dialog.tsx• L7-113 libs/…/live-overlay.tsx• L11-97 libs/…/use-player-playlist.ts• L19-48 libs/…/settings-navigation.ts• L6-189 libs/…/settings.tsx• L34-145 libs/…/space-toggle.test.ts• L28-100 libs/…/platform.test.ts• L66-319

Settings preferences

TV settings group connection, shared library, appearance, programme guide, playback, metadata, remote use, and device information. The settings view remembers the selected category, focused control, and panel scroll position so a remote user can leave and return without losing place.

The playback category controls next-episode autoplay and the Up next card separately. The card preference controls only the card. Autoplay still uses the next episode when it is enabled. Settings forms save only their own category, which prevents a later phone update from committing an unrelated local draft.

References: libs/…/settings-navigation.ts• L6-22 libs/…/settings-navigation.ts• L44-189 libs/…/settings-preferences.tsx• L5-113 libs/…/settings.tsx• L25-145 libs/…/index.ts• L140-173

Phone-assisted settings

Phone pairing also supports settings entry. A viewer can enter metadata, guide, appearance, and playback preferences on a phone, review them on the TV, and save them only after confirmation. Playback fields are optional so an older phone or backend can leave the TV’s current values unchanged. The TV commits its local state before it sends the pairing result back to the phone.

The phone flow never exports the existing metadata key. A blank key keeps the current TV key, while enabling metadata without a key is rejected at commit. Unknown fields do not alter unrelated TV data.

References: libs/…/phone-setup.tsx• L20-29 libs/…/phone-setup.tsx• L147-215 libs/…/phone-review.tsx• L17-62 libs/…/settings.tsx• L25-43 libs/…/settings-draft.ts• L2-20 libs/…/settings-draft.ts• L24-90 libs/…/settings-artwork.test.ts• L38-101

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the shared provider capabilities aligned with Xtream, Stalker, and M3U behavior so unsupported catalog, guide, or playback paths do not appear usable.
  • Keep source-aware media identity stable across provider mapping, filmography lookup, series recovery, favorites, history, positions, and server-library refreshes.
  • Keep provider episode context separate from episode playback data when changing series, metadata, Home behavior, or Up next lookup.
  • Keep the Up next card preference separate from autoplay behavior. Preserve the single-advance rule when changing player events, sequence loading, or replay actions.
  • Keep episode rail focus, visible windows, spacer sizes, and option-menu return targets aligned when changing season browsing.
  • Keep complete-result checks and year matching in portal filmography lookup so an incomplete search cannot open the wrong remake or claim absence.
  • Keep request ownership and source checks aligned across catalog, guide, metadata, series recovery, Home source activation, and playback flows.
  • Keep local viewing state as the boundary for favorites and progress when changing shared-source synchronization.
  • Keep watch-state labels, progress bars, resume positions, and revision changes aligned when changing playback checkpoints or manual watch actions.
  • Keep catalog sort labels and provider fallback notices aligned with the dates that each provider supplies.
  • Keep live overlay ownership, playlist return behavior, focus keys, route origins, and Back behavior aligned when changing live screens or player controls.
  • Keep text-field edit activation separate from remote Back, Space, and arrow handling when changing remote input or form behavior.
  • Keep settings drafts scoped to their category and preserve optional playback fields when changing phone pairing.
  • Keep native-player limits visible when changing stream resolution or direct-access diagnostics; the TV does not add general media support.
  • Keep TMDB enrichment opt-in and editorial so a metadata change cannot replace provider IDs or playback commands.

Important failure modes

TriggerConsequenceGuard
Backend identity or authorization check failsThe selected source cannot become ready for browsingVerify the backend before provider access and offer retry or manual setup
A source or screen changes while an older request is still runningLate catalog, guide, metadata, series, or Up next data can appear under the wrong sourceCancel the old request and require current request ownership before publishing
A Home title belongs to a missing source or its activation failsThe title cannot open or play from HomeCheck the source before action, activate it deliberately, and keep a source-specific retry
Filmography paging repeats or ends earlyA valid title can be hidden or an uncertain result can be treated as missingFinish paging before selection and report incomplete search as an error
A filmography match has a conflicting yearThe viewer can open a remake instead of the credited titleCompare normalized titles and compatible release years, then show choices when needed
A saved episode has no known parent seriesHome or playback return loses series contextSearch for the exact parent identity and preserve the episode command if recovery fails
A long season loses its selected rail item during window changesRemote focus jumps or the viewer cannot open the intended episode actionKeep stable episode keys, preserve spacer geometry, and return options focus to the selected card
A next episode arrives after the current episode ended while a replay or navigation action is pendingAutoplay can start a title that the viewer did not chooseAbort automatic continuation during replay or navigation and accept a late successor only for the current episode
An autoplay attempt is retried from the same episodeThe next episode can start twiceClaim one autoplay advance per current episode and release the claim when activation fails
A watch-state update arrives from an older player sessionA stale checkpoint can undo a newer watched, reset, or start-over choiceAdvance the saved revision for explicit state changes and reject older session work
The provider returns an unsupported stream, header need, codec, or DRM streamNative video does not start even when URL resolution succeedsKeep playback errors retryable and rely on the device’s native media support
Guide data is absent or failsProgramme details are unavailableKeep channel playback independent and show a guide-specific status
TMDB is disabled, unavailable, slow, or returns an errorProvider titles and episodes remain available without enriched editorial dataKeep enrichment opt-in, bound and cancel requests, and preserve the original provider item
A phone settings draft contains a missing metadata key or malformed fieldThe TV may reject a requested settings changeValidate the draft at commit, preserve an existing blank replacement, and ignore unrelated fields
Local TV storage cannot commit a changeA favorite, source choice, setting, or progress update is not durableReport the failed save and offer a retry instead of claiming success
A remote Back, Space, or text-edit event is handled by the wrong layerThe viewer leaves a screen, toggles playback unexpectedly, or deletes textTreat editable fields as native input and route read-only player and navigation events through the TV handler

Key files

FileWhy to read it
apps/…/PRODUCT.mdProduct purpose, supported source types, TV limits, and device context
apps/…/main.tsxTV application entry point and runtime composition
libs/…/app.tsxThe screen, player, guide overlay, metadata, and navigation composition
libs/…/use-tv.tsCentral source, route, selection, playback, local action, and remote-facing state
libs/…/use-source-actions.tsSource activation before Home or favorite actions open or play titles
libs/…/use-tv-remote.tsMapping of remote media keys to native playback and navigation actions
libs/…/screens.tsxHome rails, Continue watching, catalog filters, and provider list presentation
libs/…/live.tsxLive preview, channel guide, and channel favorite experience
libs/…/live-overlay.tsxChannel browser, programme guide, TV Guide, and overlay Back behavior
libs/…/native-player-view.tsxNative playback controls, Up next actions, and live overlays
libs/…/up-next-card.tsxTV card behavior, dismissal, collapse, autoplay gating, and focus
libs/…/use-vod-sequence.tsExact-parent episode lookup and next-episode activation
libs/…/detail.tsxTitle details, seasons, episode browsing, metadata, and playback entry
libs/…/episode-rail.tsxFocused season browsing and long-season rendering behavior
libs/…/watch-actions.tsxManual watched, reset, and start-over actions
libs/…/index.tsShared source, media, provider, guide, progress, and user-data contracts
libs/…/watch-state.tsViewing states, progress labels, resume rules, and revisioned watch changes
libs/…/continue-watching.tsRules for unfinished viewing and series-level continuation
libs/…/series-context.tsSeries context used by episodes, Home, saved state, and detail recovery
libs/…/up-next.tsShared Up next timing, progress, dismissal, collapse, and autoplay rules
libs/…/detail-metadata.tsRules for title facts and people shown on detail pages
libs/…/index.tsProvider selection and the data-access boundary
libs/…/xtream.tsXtream catalog, details, episodes, guides, and playback behavior
libs/…/stalker.tsStalker catalog, guides, series, and playback behavior
libs/…/m3u.tsM3U playlist mapping and direct stream behavior
libs/…/filmography-search.tsProvider-side filmography matching and incomplete-search rules
libs/…/tmdb.tsOptional movie, series, episode, and person metadata enrichment
libs/…/user-data.tsDurable favorites, progress, and native player state updates
libs/…/favorites.tsxSource-scoped favorite views and unavailable-source labels
libs/…/library-settings.tsxShared source synchronization and its local-state boundary
libs/…/settings.tsxConnection, library, appearance, guide, playback, metadata, remote, and device settings
libs/…/settings-navigation.tsRemote movement, focus restoration, text-field boundaries, and settings panel behavior
libs/…/settings-preferences.tsxCategory-scoped appearance, guide, and playback preferences
libs/…/phone-review.tsxTV confirmation of phone-provided source or settings changes
libs/…/settings-draft.tsValidated phone settings shape and safe application rules
libs/…/hero.tsxFeatured title, resume state, and unfinished-title navigation
libs/…/horizontal-rail.tsxRail overflow controls and pointer paging
libs/…/focus.tsDirectional focus, platform Back, Space, and media-key behavior
libs/…/ime-guard.tsOn-screen keyboard control and safe remote text entry
libs/…/virtual-collection.tsxLarge catalog rendering, paging, focus movement, and scroll restoration
libs/…/dialog.tsxFocus ownership and return behavior for remote dialogs
libs/…/select.tsxRemote-friendly source, category, season, and preference selection
libs/…/up-next.test.tsGuarantees for Up next timing, progress display, dismissal, collapse, and autoplay rules
libs/…/up-next-hook.test.tsGuarantees that pending replay, navigation, and late successor loading do not misfire autoplay
libs/…/settings-artwork.test.tsGuarantees for safe artwork and phone settings validation and compatibility
libs/…/space-toggle.test.tsGuarantees for Space playback behavior across the player and editable controls
libs/…/platform.test.tsGuarantees for platform detection, remote keys, text entry, and TV exit behavior