The Radio chooser can also expose Trending when MusicForge is configured. Its initial pane shows track details, and the provider player replaces those details when requested. Live FM tuning is available in RF Radio. FM opens with its spectrum and waterfall visible, and Hide Spectrum switches to compact controls while keeping the same receiver session. Compact FM puts tuning controls around the frequency display and groups presets, scan, and mute below station information and the FM band dial. The receiver power control has its own row beneath the signal meter. Trending artist selections show airplay counts and, when a matching article is available, a Wikipedia biography and credited Wikimedia portrait. The shared PersistentCache stores biographies, portrait bytes, and attribution under the OpenRoadCode user cache directory (artist-profiles). Profiles with a portrait are reused for seven days. Missing profiles or portraits are retried after an hour on the next selection. Airplay counts come from the charts API. Song selections show their observed play count and the same sourced artist context when available.
Trending's embedded video pane requests playback through a per-pane session. Radio composition creates the session, which owns search work and browser cleanup. The pane retires the session when it closes. The Linux installer's optional Trending music step can save a direct API URL or set up a private SSH tunnel. See MusicForge Airplay self-hosting for server requirements and Raspberry Pi setup.
The Trending details pane displays a loading message while artist information is fetched. Use the up and down buttons to page through the biography. The YouTube action on a song opens the first video and requests autoplay when the configured YouTube Data API key or optional yt-dlp can resolve a result. Otherwise it opens the search results. You can sign in from the YouTube browser window while parked. ORC uses the same persistent YouTube browser profile for subsequent sessions, while the API key handles search separately.
If Spotify's local browser player cannot start, Trending tries an available Spotify Connect device. If playback still fails, ORC displays the failure in its error popup.
Each chart row shows the reported play count. Tap the green and red trend arrows to compare today's, seven-day, and thirty-day counts for the selected station filter. Tap ⓘ for station-by-station counts in the selected period. Both views use the existing ranked charts API, so an entry outside a chart has an unknown count. Selecting the row itself returns to the song or artist biography.
Streaming Radio adds internet station discovery and audio playback to the ORC Radio screen alongside RF Radio and Trending. The streaming browser provides Local, Regional, and Favorites views plus filtering, station artwork, selection, playback controls, and shared Home now-playing state.
Radio Browser supplies station discovery and current metadata. mpv supplies audio playback. Internet access is required for directory requests and remote streams; the streaming path itself does not require an SDR receiver.
The current composition architecture separates runtime ownership from presentation ownership:
OrcUiApplicationRuntime owns playback lifetime and stops streaming playback during application cleanup. RadioComposition owns feature-scoped presentation dependencies such as the directory, favorites store, and screen. The shell exposes neutral Home and screen-host contracts; it does not construct Radio Browser, mpv, favorites, or SDRForge services itself.
Favorites are intentionally separate from station metadata. StreamingRadioFavorites stores only stable Radio Browser station UUIDs. When Favorites is opened, RadioBrowserDirectory.stations_by_ids() resolves those UUIDs to current names, stream URLs, artwork, and other metadata. This avoids persisting stale stream URLs or duplicating directory records locally.
Favorites use the shared byte-oriented PersistentCache; serialization and validation remain domain policy in StreamingRadioFavorites. The storage root is OpenRoadCode user data rather than disposable cache data:
The earlier TOML favorites format under ${XDG_CONFIG_HOME:-~/.config}/openroadcode/streaming_radio.toml is read for migration when no new-format favorites exist; the legacy file is not deleted.
StreamingRadioDirectoryIf supports name search, station-ID resolution, regional discovery, and nearby discovery. RadioBrowserDirectory maps Radio Browser JSON responses into immutable StreamingRadioStation values. Favorites are resolved through Radio Browser's UUID lookup endpoint in one batched request and reordered to match saved favorite order.
The integrated browser currently defaults local discovery to Detroit coordinates, an 80 km radius, and Michigan. This remains a development default rather than live GPS-driven discovery.
The filter drawer provides genre/content, reported stream quality, and band/origin filters. Internet-only classification is conservative and tag-based because Radio Browser does not provide an authoritative terrestrial-versus-internet-native field. FM/AM/DAB classification is best-effort metadata inference and should not be treated as authoritative RF information.
Directory and favorite-resolution work runs off the Tk event thread. Playback requests also run on a worker thread. Station cards show selection, favorite state, and playback state; the active stream receives stronger now-playing treatment and a Stop action. Home observes the same controller, so navigating away from Radio does not intentionally stop playback.
MpvStreamingAudioPlayer launches mpv in audio-only mode and owns the process lifecycle. is_playing currently means the mpv process is alive; it does not prove that buffering completed or audio is audible.
From the repository root:
Use the installer for the environment in which ORC and mpv actually run. The Termux installer includes its certificate dependency checks.
Run the focused deterministic tests:
Run the opt-in live Radio Browser component test:
Launch the integrated UI:
For the 1024×600 acceptance pass, verify the Radio chooser, Local and Regional station loading, filter drawer layout, play/stop, Home now-playing state, favorite add/remove, Favorites reload after restarting ORC, direct RF/Streaming shortcuts, return navigation, shutdown while streaming, directory failure, and an invalid stream.
Streaming Radio does not yet provide GPS-driven local discovery, authoritative broadcast-band classification, integrated station search in the Tk browser, track metadata, mpv IPC, buffering/reconnect state, or shared audio-focus arbitration. The streaming browser presentation is also being reconciled with the current CSS-derived ThemeBundle; local palette values should not become a second visual source of truth.