~ knotless Search/
↑↓ move↵ open⇧↵ all results

geesawra.industries/hydraulophone

An unofficial YouTube Music app for iPhone, iPad, and Mac.

0
0
main
73 lines · 4.1 KB Raw History

ADR 0009: CarPlay audio integration

Date: 2026-09-24. Status: implemented; Apple entitlement approval and vehicle validation remain outstanding.

Design

Use Apple's CarPlay template scene for audio. CarPlay and the iPhone share the same AppModel, authenticated music service, queue and PlaybackController; the CarPlay delegate does not construct a second session or player. The root offers Home, Library (songs, playlists, albums and artists), Downloads and Up Next. Home and catalog browsing use the app's existing service capabilities. Each CarPlay list shows at most 39 content rows plus a paging row. Home fetches service continuations eagerly and appends pages as they arrive; long lists are still paged locally. Other catalog lists keep their existing on-demand service continuations.

CPNowPlayingTemplate observes the existing queue and supplies repeat and shuffle controls. Selecting a track starts the shared queue. During Offline Only mode the root limits navigation to completed downloads and the existing queue, and track selection is restricted to locally saved songs. The existing sign-in requirement applies on CarPlay. CarPlay browse tasks are cancelled and their results invalidated across disconnects and account/offline-mode changes.

On iOS 27 the existing Now Playing publisher is also told when CarPlay connects. This permits its system-primary media-session request while the phone scene is backgrounded but the CarPlay scene is active.

Capability and validation boundary

Update 2026-10-05: the owner temporarily removed the physical-device CarPlay entitlement from Resources/Hydraulophone.entitlements. The simulator retains its entitlement. Selecting the device file does not restore the removed key; re-enabling physical CarPlay requires an explicit entitlement change and an approved profile.

CarPlay audio requires Apple's managed com.apple.developer.carplay-audio entitlement. The simulator entitlement file includes it for local simulator work. Physical just device-install builds omit it by default; setting HYDRAULOPHONE_DEVICE_CARPLAY=1 uses the CarPlay entitlement file and still requires an Apple-approved profile. just carplay-simulator builds and launches the app. In Xcode 27, start the CarPlay Simulator connection for the selected iPhone simulator. Use Device Hub's Help-menu search for “CarPlay” to locate the command; the old Simulator app's I/O > External Displays menu is not the Device Hub workflow. Apple's WWDC26 session says CarPlay Simulator is now available in Device Hub, and the Xcode 27 release notes list the Device Hub connection issue as fixed in the release candidate. The simulator app builds, installs and launches with the simulated entitlement. CarPlay display and controls have not been runtime validated in the CarPlay Simulator or a car.

The audio app deliberately omits CPSearchTemplate: Apple reserves that template for navigation apps. No navigation entitlement is requested. Use Home and Library browsing on CarPlay; the iPhone app retains full search.

Apple documentation consulted 2026-09-24:

No InnerTube protocol behavior is introduced by this UI integration. All catalog and playback behavior remains behind existing app/core interfaces.

Deferred acceptance brief

See docs/test-briefs/carplay.md. Formal tests remain paused at the owner's request.