web/src/native.ts (#45) has handed playback to a host since September, and there was no host in this repo: the earlier app, rays/ipodderx-app, grew native lists beside the page and is left behind. This one is the page and a player: a WKWebView of ipx-web, AVPlayer behind the bridge with the audio session to play on locked, now playing and the remote commands (15 back, 30 forward, scrubbing), and positions and read written from the player's own clock, with DeadAir's copy named so the server reads the position on its clock. Built with XcodeGen on a Mac; nothing here compiles the Swift. Its icon is web/logo.svg at 1024. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RqkrVDqdiQEMWAkNGQ2tYA
20 lines
680 B
Swift
20 lines
680 B
Swift
import UIKit
|
|
|
|
@main
|
|
final class AppDelegate: UIResponder, UIApplicationDelegate {}
|
|
|
|
/// The one window. iOS will not run an app that has not adopted scenes, and a CarPlay app would
|
|
/// be a second scene beside this one.
|
|
final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
|
var window: UIWindow?
|
|
|
|
func scene(_ scene: UIScene, willConnectTo session: UISceneSession,
|
|
options: UIScene.ConnectionOptions) {
|
|
guard let scene = scene as? UIWindowScene else { return }
|
|
let window = UIWindow(windowScene: scene)
|
|
window.rootViewController = WebViewController()
|
|
window.makeKeyAndVisible()
|
|
self.window = window
|
|
}
|
|
}
|