An iOS app: the page in a web view, with the phone's own player #418

Closed
opened 2026-11-07 13:47:12 -08:00 by rays · 2 comments
Owner

The page on an iPhone home screen stops playing when the screen locks for long, and nothing outside the page (the lock screen, a car over Bluetooth) can drive it. web/src/native.ts (#45) already hands playback to a host when one is there; there is no host. The earlier attempt, rays/ipodderx-app, grew native lists beside the page and is left behind.

This one is the page and a player, nothing else: a WKWebView of ipx-web, and AVPlayer behind native.ts, with the audio session for playing on locked, now-playing and the remote commands (15 back, 30 forward, scrubbing), and positions and read written by the host from its own clock. In ipx, under ios/, so the bridge's two ends change in one commit. Built with XcodeGen on a Mac; nothing here can build it.

The page on an iPhone home screen stops playing when the screen locks for long, and nothing outside the page (the lock screen, a car over Bluetooth) can drive it. web/src/native.ts (#45) already hands playback to a host when one is there; there is no host. The earlier attempt, rays/ipodderx-app, grew native lists beside the page and is left behind. This one is the page and a player, nothing else: a WKWebView of ipx-web, and AVPlayer behind native.ts, with the audio session for playing on locked, now-playing and the remote commands (15 back, 30 forward, scrubbing), and positions and read written by the host from its own clock. In ipx, under ios/, so the bridge's two ends change in one commit. Built with XcodeGen on a Mac; nothing here can build it.
rays added the enhancement label 2026-11-07 13:47:12 -08:00
Author
Owner

First version in a581e3f, under ios/: build with XcodeGen and Xcode on a Mac (ios/README.md). Not compiled yet, since nothing on Tower can build Swift for iOS; left open until it has been built and played on the phone.

First version in a581e3f, under ios/: build with XcodeGen and Xcode on a Mac (ios/README.md). Not compiled yet, since nothing on Tower can build Swift for iOS; left open until it has been built and played on the phone.
Author
Owner

Built on the Mac and in TestFlight since build 2; played on the phone with the screen locked, the lock screen and AirPlay (#429), offline (#435), with the icon count (#421, #433). Later work is in its own issues.

Built on the Mac and in TestFlight since build 2; played on the phone with the screen locked, the lock screen and AirPlay (#429), offline (#435), with the icon count (#421, #433). Later work is in its own issues.
rays closed this issue 2026-11-13 05:33:34 -08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rays/ipx#418