Skip to content

Android parity and open-issues sweep - #36

Merged
RXWatcher merged 43 commits into
Silo-Server:mainfrom
RXWatcher:fix/open-issues-upstream-main
Jul 6, 2026
Merged

RXWatcher merged 43 commits into
Silo-Server:mainfrom
RXWatcher:fix/open-issues-upstream-main

Conversation

@RXWatcher

Copy link
Copy Markdown
Contributor

Summary

This is the consolidated Android parity/open-issues PR. It supersedes the now-closed PRs #30 and #34, and also replaces the stale/conflicting resume-progress PR #2 with the newer branch state.

The branch brings Android mobile and Android TV closer to the current Apple clients while keeping Android-only capabilities where they already exist.

What changed

Requests parity

  • Adds shared RequestsFeatureStore and wires it through DI.
  • Refreshes the request capability on server/profile changes and resets it on sign-out.
  • Enables Requests in the mobile profile/top-bar menu when the server reports requests_enabled.
  • Enables Requests in the TV profile dropdown when the server reports requests_enabled.
  • Keeps Requests out of Settings, matching Apple placement.
  • Mounts request search in global search with loading, empty, and error states.
  • Keeps TV request surfaces filtered to TV-supported media. Ebooks remain out of TV.

Mobile parity and polish

  • Fixes mobile global search filtering so Video results do not include audiobooks/reading results.
  • Adds Downloads settings parity for retention/cleanup controls and remove-all handling.
  • Keeps Watch Together/Admin code paths compiled but not exposed in normal mobile user menus.
  • Preserves profile/menu sign-out behavior while resetting request capability state.

Android TV parity and polish

  • Updates TV Settings to the split rail/detail layout and removes old stacked settings surfaces.
  • Adds request entry from the TV profile dropdown with the same server capability gate as tvOS.
  • Keeps Admin and Watch Together hidden from normal TV user menus.
  • Improves TV search request integration and focus handoff.
  • Increases player HUD readability: larger HUD bounds, tabs, row padding, picker sizing, and 10-foot-safe typography.
  • Keeps the standalone CC quick button while the full HUD remains available for deeper subtitle controls.

Earlier consolidated player work

Includes the player work from the superseded branches, including:

  • Phone Up Next countdown card parity.
  • DV Profile 7 / mpv passthrough / playback recovery work.
  • Rewatch/resume progress handling from the newer branch state.

Verification

Ran successfully:

./gradlew :androidApp:testDebugUnitTest :androidTvApp:testDebugUnitTest :androidApp:assembleDebug :androidTvApp:assembleDebug

Device smoke checks done during the branch

  • Installed mobile debug APK on Pixel during testing.
  • Installed TV debug APK on Google TV Streamer.
  • Cleaned duplicate Silo packages from the Streamer and reinstalled only the current TV package.
  • Previously tested/iterated TV playback controls, subtitles, aspect ratio, HUD controls, profile flows, and setup/login surfaces on available TV devices/emulators.

Notes for reviewers

  • Requests are now intentionally user-visible when the server feature flag is enabled. This matches iOS/tvOS.
  • Admin and Watch Together remain compiled/routable where applicable but are intentionally not exposed in normal user menus yet.
  • TV continues to exclude ebooks/reading request flows.
  • This PR is intentionally broad because it consolidates the closed/superseded PR work plus the latest parity fixes into one branch against current main.

Quick104 and others added 30 commits July 3, 2026 02:29
Bring the phone player's end-of-episode flow to parity with Android TV.
Instead of instantly auto-advancing at the credits marker (with a bare
"Next Episode" button and a "Still watching?" dialog), the player now
surfaces a dismissible Up Next card with the next episode's still,
title, and runtime, plus a visible 10s countdown that auto-plays at
zero.

- PlayerViewModel: NextEpisodeInfo state (full EpisodeListItem fields),
  showUpNext/upNextVideoEnded/upNextCountdownSeconds card state, and a
  TV-mirroring onApproachingEnd/commitApproachingEnd/countdown flow
  with the pending re-arm for late next-episode resolution. Pass-out
  semantics match TV: shouldGate() at commit (gated or auto-play off =
  card without countdown), recordAutoAdvance() only on unattended
  countdown expiry, Play Now resets the streak. Watch Together rooms
  never show the card.
- Trigger: credits-marker crossing wins when present; otherwise the
  card fires when crossing (duration - nextUpPromptSeconds) with the
  same before->after transition guard (0 = only at end, iOS parity);
  STATE_ENDED remains the fallback and upgrades the card label.
- New UpNextCard composable: compact dark card bottom-end with
  ThumbhashImage still, "UP NEXT"/"PLAYING NEXT" eyebrow, runtime,
  "Play Now · N" countdown button, and a dismiss affordance. Replaces
  the StillWatchingPrompt dialog and the bare Next Episode button.
- Settings: "Auto-Play Next Episode" switch and "Show Next Up"
  prompt-seconds dropdown in the phone Playback section, wired to the
  existing per-profile, server-synced store keys (labels mirror TV).

Phone-only; no shared or TV module changes.

Refs #23

Co-Authored-By: Claude Fable 5 <[email protected]>
Two audit fixes for the phone Up Next card:

- The countdown on the credits/prompt-crossing path is now derived from
  the remaining playback time and only advances once the player reports
  STATE_ENDED (iOS parity), instead of a fixed 10s wall-clock timer that
  could truncate up to ~110s of an episode with no credits marker. The
  10s wall-clock countdown is kept only for cards committed at
  STATE_ENDED, where no playback remains to anchor to.

- Deliberate transport actions now interact with the non-modal card:
  pausing cancels the auto-advance countdown (card stays up without a
  countdown), and a user seek while the card is showing dismisses it,
  so the player can no longer yank a paused or rewatching user to the
  next episode. Room-driven seeks (seekImmediate) are unaffected.

Co-Authored-By: Claude Fable 5 <[email protected]>
… recovery

Findings from a code survey of seven open-source Android players
(jellyfin-androidtv, Findroid, jellyfin-android, Streamyfin, NextPlayer,
Just Player, mpv-android), written up in docs/media3/10.

- Mobile player-error recovery (parity with TV): wire onPlayerError and
  PlaybackRecoveryPlanner into PlayerViewModel — bounded transient-network
  same-route retry, alternate direct engine with attemptedEngines guard and
  route-event telemetry, then server remux/transcode, single-flighted.
  Previously decoder/IO failures were dropped and every preflight issue
  forced a FULL transcode.
- Dolby Vision Profile 7: allow native direct play when the decoder claims
  dual-layer DV with multi-instance HEVC (the probe's existing gate);
  DisplayHdrProbe no longer strips P7 from the panel intersection (Android
  panels can't report per-profile DV support). Non-native P7 now prefers an
  alternate direct engine (mpv renders the HDR10 base layer) over transcode,
  and never remuxes (a remux re-sends the same rejected stream).
- mpv audio passthrough: default ao is now audiotrack,aaudio — mpv's AAudio
  AO cannot open IEC61937 streams, so audio-spdif passthrough silently
  decoded Atmos/TrueHD to PCM under aaudio.
- mpv hwdec: direct-first (mediacodec,mediacodec-copy) instead of forced
  copy-back, halving decode memory bandwidth on 4K.
- TS extractor hardening: FLAG_ENABLE_HDMV_DTS_AUDIO_STREAMS and a
  1500-packet timestamp search window for Blu-ray-sourced M2TS and
  high-bitrate transport streams.

Server follow-up: the resolver still emits
dolby_vision_profile_7_not_launch_claimed, which preempts the new client
ladder; it should stop blocking P7 (or offer MPV_DIRECT as a fallback) now
that clients claim and handle it honestly.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AaKRXz1mtnsDm6pn1LDkmz
# Conflicts:
#	androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerScreen.kt
#	androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModel.kt
#	androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/PlaybackSettings.kt
#	androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/SettingsScreen.kt
#	androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/SettingsViewModel.kt
@coderabbitai

coderabbitai Bot commented Jul 6, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 227 files, which is 77 over the limit of 150.

To get a review, narrow the scope:
• coderabbit review --type committed # exclude uncommitted changes
• coderabbit review --dir # limit to a subdirectory
• coderabbit review --base # compare against a closer base

Upgrade to a paid plan to raise the limit.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 59755f81-fffe-4e51-ac36-02775888557c

📥 Commits

Reviewing files that changed from the base of the PR and between 95eb42d and 25e6e67.

📒 Files selected for processing (227)
  • README.md
  • android-shared/schemas/org.siloserver.silo.common.data.db.SiloDatabase/7.json
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/cast/SiloCastFrame.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/cast/SiloCastNsdAdvertiser.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/cast/SiloCastNsdBrowser.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/data/db/SiloDatabase.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/data/db/dao/DownloadSubscriptionDao.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/data/db/dao/UserItemStateDao.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/data/db/entity/DownloadSubscriptionEntity.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/data/repository/RoomDownloadSubscriptionRepository.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/data/repository/RoomUserItemStateRepository.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/di/PlayerInfraModule.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/downloads/DownloadEnqueuer.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/downloads/DownloadReclaimPlanner.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/downloads/DownloadSubscriptionEvaluator.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/downloads/DownloadSubscriptionEvaluatorFactory.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/downloads/DownloadSubscriptionWorker.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/network/ServerReachabilityMonitor.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/pairing/CompanionPairingCoordinator.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/pairing/CompanionPairingNsdBrowser.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/pairing/TlsPskPairingClientTransport.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/pip/SiloPictureInPictureCoordinator.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/DisplayHdrProbe.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/MediaAuthInterceptor.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/MediaLoadRetryPolicy.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/PlaybackCapabilityDetector.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/PlaybackRecoveryPlanner.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/PlaybackSessionLifecycle.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/PlayerStatsSnapshot.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/SiloPlaybackService.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/SiloPlayerFactory.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/SubtitleManager.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/mpv/MpvPlayer.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/settings/AndroidPlayerSettingsStore.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/settings/PlayerSettingsStore.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/settings/ServerDrivenConfigRefresher.kt
  • android-shared/src/androidMain/res/drawable/ic_pip_forward_30.xml
  • android-shared/src/androidMain/res/drawable/ic_pip_pause.xml
  • android-shared/src/androidMain/res/drawable/ic_pip_play.xml
  • android-shared/src/androidMain/res/drawable/ic_pip_replay_10.xml
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/data/repository/RoomUserItemStateRepositoryTest.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/downloads/DownloadEnqueuerSourceTest.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/downloads/DownloadReclaimPlannerTest.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/downloads/DownloadSubscriptionDaoTest.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/downloads/DownloadSubscriptionEvaluatorTest.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/network/ServerReachabilityMonitorTest.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/pairing/CompanionPairingCoordinatorTest.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/pip/SiloPictureInPicturePolicyTest.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/MediaAuthInterceptorTest.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/MediaLoadRetryPolicyTest.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/PlaybackCapabilityDetectorDolbyVisionTest.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/PlaybackRecoveryPlannerTest.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/PlaybackSessionLifecycleTest.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/PlayerStatsSnapshotReducerTest.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/SiloPlayerFactoryRetryPolicySourceTest.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/SiloPlayerFactorySubtitleParserTest.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/SubtitleManagerAppearanceTest.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/mpv/MpvPlayerSourceTest.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/settings/AndroidPlayerSettingsStoreTest.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/settings/ServerDrivenConfigRefresherTest.kt
  • androidApp/build.gradle.kts
  • androidApp/src/androidMain/AndroidManifest.xml
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/MainActivity.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/SiloApplication.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/cast/SiloCastController.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/di/AndroidModule.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/downloads/AppWorkerFactory.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/push/AndroidPushRegistrationStarter.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/push/AndroidPushTokenProvider.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/push/PushNotificationPresenter.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/push/SiloFirebaseMessagingService.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/MainAppTopBar.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/navigation/AppNavigation.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/navigation/MobileDownloadVisibility.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/navigation/NotificationNavigationRoutes.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/navigation/Routes.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/MainScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/browse/BrowseScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/browse/BrowseViewModel.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/browse/CatalogGrid.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/browse/CatalogNamePrefix.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/browse/CatalogViewDensity.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/cast/SiloCastMiniBar.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/cast/SiloCastRemoteScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/cast/SiloCastTargetPickerSheet.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/collections/CollectionDetailScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/collections/CollectionsScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/DownloadQualityPickerSheet.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/EpisodeList.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/ItemDetailScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/ItemDetailViewModel.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/MovieDetailContent.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/SeriesDetailContent.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/downloads/DownloadsScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/downloads/DownloadsViewModel.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/home/HomeScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/libraries/LibrariesScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/pairing/CompanionPairingViewModel.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/MobileSubtitleAutoSelection.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlaybackStatsSheet.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerGestureHandler.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerOverlay.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerSettingsSheet.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModel.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/UpNextCard.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/reading/ReadingHubScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/reading/ReadingHubViewModel.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/search/RequestSearchSection.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/search/SearchResults.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/search/SearchScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/search/SearchViewModel.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/AccountSection.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/PlaybackSettings.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/SettingsScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/SettingsViewModel.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/util/PlaybackResumePosition.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/cast/SiloCastPhoneSourceTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/pip/MobilePictureInPictureSourceTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/push/AndroidPushSourceTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/navigation/ClientSurfaceVisibilitySourceTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/navigation/MobileAppleParitySourceTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/navigation/MobileDownloadVisibilityTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/navigation/NotificationNavigationRoutesTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/MobileOfflineBannerSourceTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/browse/CatalogLetterIndexViewModelTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/collections/CollectionsBrowseOnlySourceTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/detail/DetailPlayLabelTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/detail/DownloadQualityPickerSourceTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/detail/EpisodeProgressFractionTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/detail/EpisodeSpoilerBlurSourceTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/downloads/DownloadsMonitoringSourceTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/player/MobileSubtitleAutoSelectionSourceTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/player/MobileSubtitleAutoSelectionTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerFastForwardHoldSourceTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerPinchGravitySourceTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerStatsHudSourceTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerUpNextSourceTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModelSharedCoordinatorTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/search/MobileSearchMediaTypeFilterTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/settings/DownloadsSettingsParitySourceTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/shared/MobileSharedFollowupsSourceTest.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/util/PlaybackResumePositionTest.kt
  • androidTvApp/build.gradle.kts
  • androidTvApp/src/androidMain/AndroidManifest.xml
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/MainTvActivity.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/cast/TvSiloCastPlayerAdapter.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/cast/TvSiloCastReceiver.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/di/AndroidTvModule.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvCatalogGrid.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvLoginViewModel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvSetupViewModel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvSignupViewModel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/collections/TvCollectionDetailScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/collections/TvCollectionsScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvItemDetailViewModel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/library/TvLibraryDetailScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/library/TvLibraryDetailViewModel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerHud.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerViewModel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/search/TvSearchScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/settings/TvSettingsScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/settings/TvSettingsViewModel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/shell/TvLibraryPill.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/shell/TvMainShell.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/cast/TvSiloCastReceiverSourceTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/data/preferences/LegacyTvPrefsMigrationTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/pip/TvPictureInPictureSourceTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/push/TvPushSurfaceSourceTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/navigation/TvClientSurfaceVisibilitySourceTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvAuthSingleFlightTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvLoginViewModelRaceTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/collections/TvCollectionsBrowseOnlySourceTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/library/TvLibrarySubdestinationViewModelTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/player/PlayerStatsSnapshotReducerTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/player/PlayerTrackEntriesTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerBackendCapabilitiesSourceTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerControlsUsabilityTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerHudTabsTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/search/TvSearchLayoutReadabilityTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/settings/TvSettingsUsabilityTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/shell/TvLibraryPillSetTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/shell/TvOfflineBannerSourceTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/theme/TvSkylineTokenParityTest.kt
  • docs/media3/10-reference-player-comparison.md
  • docs/media3/README.md
  • docs/superpowers/plans/2026-07-06-open-issue-closure.md
  • docs/superpowers/specs/2026-07-06-open-issue-closure-design.md
  • gradle/libs.versions.toml
  • shared/src/commonMain/kotlin/org/siloserver/silo/cast/SiloCastMessage.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/cast/SiloCastPlaybackClock.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/cast/SiloCastProtocol.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/di/NetworkModule.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/di/RepositoryModule.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/catalog/CatalogModels.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/download/DownloadModels.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/download/DownloadSubscriptionModels.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/feature/ClientSurfacePolicy.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/feature/RequestsFeatureStore.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/notifications/PushRegistrationModels.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/settings/PlaybackSettingsKeys.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/settings/SubtitleAppearance.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/AuthInterceptorImpl.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/api/CatalogApi.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/api/HealthApi.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/api/PushRegistrationApi.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/playback/TrackSelectionFingerprint.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/repository/CatalogRepository.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/repository/DownloadSubscriptionRepository.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/repository/NotificationsRepository.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/repository/PushRegistrationRepository.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/repository/port/UserItemStatePort.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/viewmodel/HomeViewModel.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/viewmodel/LocalUserStateOverlay.kt
  • shared/src/commonTest/kotlin/org/siloserver/silo/cast/SiloCastMessageTest.kt
  • shared/src/commonTest/kotlin/org/siloserver/silo/cast/SiloCastPlaybackClockTest.kt
  • shared/src/commonTest/kotlin/org/siloserver/silo/model/download/DownloadRecordSerializationTest.kt
  • shared/src/commonTest/kotlin/org/siloserver/silo/model/feature/ClientSurfacePolicyTest.kt
  • shared/src/commonTest/kotlin/org/siloserver/silo/model/feature/RequestsFeatureStoreTest.kt
  • shared/src/commonTest/kotlin/org/siloserver/silo/model/settings/SubtitleAppearanceTest.kt
  • shared/src/commonTest/kotlin/org/siloserver/silo/network/SiloAuthPluginRefreshFailureTest.kt
  • shared/src/commonTest/kotlin/org/siloserver/silo/network/api/CatalogApiQueryTest.kt
  • shared/src/commonTest/kotlin/org/siloserver/silo/network/api/HealthApiTest.kt
  • shared/src/commonTest/kotlin/org/siloserver/silo/network/api/PushRegistrationApiTest.kt
  • shared/src/commonTest/kotlin/org/siloserver/silo/playback/TrackSelectionFingerprintTest.kt
  • shared/src/commonTest/kotlin/org/siloserver/silo/viewmodel/LocalUserStateOverlayTest.kt

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 45f24b64ce

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +177 to +181
private fun notificationRouteOrNull(intent: Intent?): String? =
intent
?.getStringExtra(PushNotificationPresenter.EXTRA_NAV_ROUTE)
?.trim()
?.takeIf { it.isNotEmpty() }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Validate external notification routes

Because MainActivity is exported, another app can start it with EXTRA_NAV_ROUTE; this helper accepts any non-empty string and AppNavigation later passes it directly to navController.navigate(route). An arbitrary unknown route crashes the app, and known hidden routes such as requests/player/watch-together can be opened without going through the intended UI gates. Restrict this to an allowlist of notification routes or otherwise verify the intent was produced by the app before navigating.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 25e6e67. Notification extras now go through notificationNavigationRouteOrNull, which only allows inbox and item/<id> routes; player, requests, watch-together, malformed item routes, and arbitrary strings are dropped. Added NotificationNavigationRoutesTest for the allowlist.

Comment on lines +179 to +180
val requestsMenuAction: (() -> Unit)? = if (requestsEnabled) {
{ navController.navigate(Route.Requests.route) }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep Requests out of phone menus

The repository exposure rules say Requests are not currently accessible on Android phone, but this now turns a positive server /requests/status response into a visible menu action. On any server with requests enabled, the phone Home/Libraries/top-bar menus will expose Route.Requests without a client-side product switch, so keep this null or behind the existing client exposure policy until the surface is approved.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leaving this visible intentionally. Product direction is Apple parity: Requests should be exposed on Android when the server reports requests enabled. Admin and Watch Together remain hidden from user menus; Requests is no longer part of the hidden-surface policy.

state = SiloPictureInPicturePlaybackState(
enabled = pictureInPictureEnabled,
videoActive = uiState.streamUrl != null && !uiState.isLoading && uiState.error == null,
isPlaying = mediaController?.isPlaying == true && !uiState.isPaused,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Recompute mobile PiP params when playback starts

This value changes when the player transitions from prepared/buffering to actually playing, but the surrounding LaunchedEffect is not keyed on uiState.isPlaying (the field updated by onIsPlayingChanged). In the normal path the coordinator can cache isPlaying=false when streamUrl first appears, leaving canEnterPictureInPicture/auto-enter disabled until some unrelated key changes; key the effect on the playing state or derive the PiP state from the observed UI state.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 25e6e67. Mobile PiP state now keys on uiState.isPlaying and publishes isPlaying = uiState.isPlaying && !uiState.isPaused, so the coordinator refreshes when playback actually starts.

state = SiloPictureInPicturePlaybackState(
enabled = pictureInPictureEnabled,
videoActive = state.streamUrl != null && !state.isLoading && state.error == null,
isPlaying = mediaController?.isPlaying == true && !state.isPaused,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Recompute TV PiP params when playback starts

This has the same stale-state problem as the phone player: mediaController?.isPlaying can flip after this effect has run, while the effect only keys on stream/loading/error/pause and never on state.isPlaying. On TV builds that support PiP, the coordinator may keep isPlaying=false, so leaving the app during active playback will not enter PiP until another dependency happens to update.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 25e6e67. TV PiP state now keys on state.isPlaying and publishes isPlaying = state.isPlaying && !state.isPaused, matching the phone-side fix.

@RXWatcher
RXWatcher merged commit c25d26c into Silo-Server:main Jul 6, 2026
1 check passed
@RXWatcher
RXWatcher deleted the fix/open-issues-upstream-main branch July 13, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants