Independent media player with an original interface and artwork, and no payment gates. One HTML/CSS/JavaScript interface serves web, Samsung TV, iOS and macOS; playback and private storage use platform adapters. Apple TV, which has no web view, has a native interface built on the same playback engines and shared parsing code.
Development version 0.2.0. Browser HLS playback and native macOS playback have been exercised with a private user-provided catalog. The iOS simulator and macOS targets compile. This is not a store release or certification of every stream or codec.
Samsung target is Tizen 6.0+. Apple TV target is tvOS 17+; it builds and was exercised in the tvOS 26.2 simulator with synthetic local streams. Physical iOS, Apple TV and Samsung TV playback remain unverified. No playlists, provider accounts, credentials or channel subscriptions are included.
| Layer | Responsibility |
|---|---|
app/core.js |
Shared playlist parsing, filters, programme times |
app/sports.js |
Followed leagues, scoreboard parsing and matching games to channels |
app/app.js, app/styles.css |
Shared home, search, favorites, Live TV channels and guide, details, player controls; phone bottom navigation, desktop/TV sidebar |
app/player.js |
Generation-scoped playback lifecycle; browser video/HLS.js, Samsung AVPlay, Apple bridge |
app/cast.js |
Chrome Cast sender for the default media receiver; drives the shared player controls while casting |
app/platform.js |
Private library and text import adapters |
server/ + scripts/serve.cjs |
Local web relay: provider URLs stay server-side, same-origin opaque media URLs, HLS rewriting and Range support; opt-in token-protected LAN cast listener |
platforms/apple/Airwave.swift |
iOS/macOS SwiftUI shell, bundled WKWebView, AVPlayer and mpv playback engines with automatic selection and fallback, compact native controls, document picker, AES-GCM catalog storage with Keychain key |
app/voice.js |
Samsung TV voice commands and browser voice search, turned into app commands |
platforms/apple/AirwaveTV.swift |
Apple TV SwiftUI interface over the shared engines, catalog store and core.js (in JavaScriptCore) |
app/config.xml |
Samsung TV packaging and privileges |
Apple apps bundle the interface and connect directly to the provider; they do not depend on the local web server. Native catalog credentials never enter the web view. Tile artwork comes from the catalog's logos and posters (resolved natively on Apple, through the relay on the web) and from XMLTV programme icons; titles without artwork show their name on a flat tint. Live channel tiles on screen also show a still of what the channel is playing, grabbed one channel at a time and never during playback: through the relay when ffmpeg is installed (or AIRWAVE_FFMPEG points at it; AIRWAVE_PREVIEWS=0 turns stills off), and natively with mpv on Apple. The logo stays until a still arrives or when a grab fails. The web relay keeps provider credentials out of the browser library payload. Web and Apple catalogs are private, device-local copies; there is no cloud synchronization.
Start with AGENTS.md and the project map for architecture, data contracts and known debt.
npm ci --ignore-scripts
npm run check
npm run releaseThe check runs 74 active tests plus one pending Samsung version-parity expectation. The release command creates a static runtime archive in dist/, with no private catalog or Node relay.
Requires Node 18+. HLS.js is bundled with its license. npm ci restores the pinned development dependency.
npm startOpen http://127.0.0.1:4317. To load your private catalog, point the server at the file stored outside the source project:
AIRWAVE_LIBRARY_PATH='/absolute/path/to/private/library.json' npm startKeep private catalog JSON outside this checkout. It can contain provider credentials. Never publish it or bundle it with an app. See docs/PROJECT.md for the catalog contract.
The relay binds to loopback only, validates Host and Origin, uses an HttpOnly SameSite cookie, and accepts only registered upstream resources. It rejects private-network upstream destinations and revalidates redirects. It is a single-user local web app, not a public hosted service. Public hosting needs real user authentication, per-user encrypted catalog storage, HTTPS, rate limits, and provider-compatible deployment before exposing a relay.
Static hosting of app/ also runs the interface and direct-source player, subject to provider CORS and HTTPS/mixed-content restrictions. The private local relay is required for the tested provider setup in Chromium.
The player shows a Cast button in Chrome (the web app) and in the iOS app when a Cast device is on the network. The macOS app and Samsung TV don't offer casting. Titles play on the device's default media receiver, and the Airwave controls drive playback until you disconnect; in Chrome, playback then resumes on this screen at the same position.
-
Demo and M3U titles are cast as their own URLs. The Cast device fetches them directly, so the source has to allow it: HLS streams need the provider to send CORS headers.
-
Private-library titles in the web app stay behind the relay. Start it with the cast listener turned on:
AIRWAVE_CAST=1 AIRWAVE_LIBRARY_PATH='/absolute/path/to/private/library.json' npm startThe relay then also listens on this computer's local network address (port
AIRWAVE_PORT+1, orAIRWAVE_CAST_PORT; setAIRWAVE_CAST_HOSTto choose the address). It serves only registered library media, behind a random token in the URL that rotates with each cast, is revoked when casting stops and expires after 12 hours. Anyone on the same network who obtains a current URL can watch that library's streams until then. Provider URLs and credentials stay in the relay process, and the relay adds the CORS headers the receiver needs. -
iOS casts from the Cast button beside Back in the native player, or plays straight to an already connected device. Native code hands the receiver the provider URL, so it never passes through JavaScript, but the provider must allow cross-origin HLS requests. iOS asks for local network access the first time you cast.
Casting relies on Google's Cast SDKs: Chrome loads Google's sender script the first time you open the player, and the iOS target links the Google Cast SDK Swift package. Casting to real devices has not been verified; see VERIFICATION.md.
Open platforms/apple/Airwave.xcodeproj. Shared schemes:
Airwave-macOS: macOS 13+, universal Intel/Apple Silicon.Airwave-iOS: iPhone/iPad, iOS 16+.Airwave-tvOS: Apple TV, tvOS 17+. A native SwiftUI interface (Home, Live TV, Movies, Favorites, Search and Settings in a left sidebar on tvOS 18+, a top tab bar on tvOS 17) over the same engines; building it needs Xcode's tvOS platform component installed.
All three targets link MPVKit 1.0.0 (mpv and FFmpeg, LGPL build) through Swift Package Manager; the first build downloads its frameworks. See NOTICE.md for what that means for distributing a build.
To time playback start-up, launch with -AirwavePlaybackTiming YES and watch log stream --predicate 'subsystem == "app.airwave"' (on the simulator, prefix xcrun simctl spawn booted). Each line gives the engine, live or movie, container, attempt and seconds from the play request to the first frame. It never logs URLs.
To try ML super-resolution on SD channels (macOS or iOS 26, not the simulator), launch with -AirwaveSuperResolution YES. It applies only to AVPlayer titles up to 960×960; see VERIFICATION.md for what it costs and what it looks like.
Select a development team and your own bundle identifiers for device distribution. Local builds:
xcodebuild -project platforms/apple/Airwave.xcodeproj -scheme Airwave-macOS -configuration Debug -derivedDataPath build/mac CODE_SIGNING_ALLOWED=NO
xcodebuild -project platforms/apple/Airwave.xcodeproj -scheme Airwave-iOS -configuration Debug -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' -derivedDataPath build/ios CODE_SIGNING_ALLOWED=NO
xcodebuild -project platforms/apple/Airwave.xcodeproj -scheme Airwave-tvOS -configuration Debug -sdk appletvsimulator -destination 'generic/platform=tvOS Simulator' -derivedDataPath build/tvos CODE_SIGNING_ALLOWED=NOIn the native app, Settings → Choose library file imports the private JSON catalog. It is encrypted into Application Support/Airwave/library.encrypted; the AES key is in Keychain. Move a private catalog to an iPhone only through a transfer method you trust, then use its file picker. This is a development app, not an App Store release. Store assets, privacy declarations, signing/provisioning, device testing, and distribution are separate release work.
On Apple TV, Settings → Add library or playlist takes a link to an Airwave library JSON file or an M3U playlist. Hold the Siri Remote's mic to dictate it, or type it on an iPhone when the keyboard prompt appears. The library is saved encrypted in the app's Caches folder and the link in the Keychain; if tvOS clears Caches to free space, Airwave fetches the library again from that link.
HTTP IPTV support currently uses an ATS exception in the Apple plist. A release must document this user-provided media use case or narrow the exception as provider support allows. No certificate validation bypass is implemented.
- Install official Tizen Studio, Samsung TV extension and Samsung Certificate Extension.
- Create a Samsung certificate profile including the TV's DUID when required.
- Enable TV Developer Mode, enter the development computer's IP, reboot and connect through Device Manager.
- Import
app/as a Tizen web application; use Run As → Tizen Web Application. - Alternatively, with a configured Tizen CLI:
AIRWAVE_CERT_PROFILE='YourProfileName' npm run packageThis produces a signed widget in dist/. Source ZIPs are not installable widgets. Samsung packaging and installation have not been verified. Import a provider M3U through the TV interface; the Mac's loopback web relay is not reachable from the TV.
- TV look: on Samsung TVs (and big screens with no mouse; add
?tv=1to preview in a browser; it stays on for that browser session until?tv=0) the menu shrinks to the current page's name in the corner and opens over the page when you press Left, tiles and titles are sized for the couch, and the player sits on dark scrims. - TV remotes: on TV-sized screens the sidebar and the page are separate columns. Up and Down stay in the column, Left from the first tile opens the sidebar at the current page, Right returns to the tile you left, and reaching the end of a long grid loads more. Back steps out one level: player, dialog, page to sidebar, Home, then (on Samsung) Leave Airwave. Channel up/down changes live channels while one plays. Focus is a white fill or ring; selected filters stay outlined so the two never look alike.
- Voice: on Samsung TVs (Tizen 6.0+), hold the remote's mic and say a title on screen ("Cinema Club", "the second one"), "pause", "skip ahead 30 seconds", "next channel", "add to favorites" or "go to search". In Chrome, the mic button in Search fills the box from speech. On Apple TV, hold the Siri Remote's mic in Search or any text field to dictate, and Siri's playback requests (pause, skip, "what did they say?") work while a title plays.
- On Samsung TVs, a stream that won't play says why: the provider's limit of streams at once (and how many are in use, when the provider reports it), an expired or rejected account, a missing channel, or a provider or network failure.
- Library browsing, title/group search, favorites, movie progress that resumes where you stopped, one-click playback from any tile, M3U and XMLTV import, remote/keyboard navigation.
- Sports scores: follow leagues (NFL, NBA, MLB, NHL, WNBA, MLS, college football and basketball, Premier League, Champions League) in Settings to see their games at the top of Home. Choosing a game plays the channel that the guide, the channel names or the broadcaster point to. Scores come from ESPN's public scoreboard feed and load only while a league is followed.
- Browser and Samsung playback share one control layer: movies get a seek bar the remote scrubs (left/right to choose, OK to jump, Back to cancel), skip 10 seconds and Start over; live channels show the current programme, what is next and a Guide shortcut.
- Phone layout uses touch-sized controls and safe-area spacing. macOS native playback uses a compact Airwave control bar; iOS uses system video controls for AVPlayer and the compact bar for mpv.
- The Apple apps choose a player per title: AVPlayer for HLS and MP4/MOV/M4V (and whenever AirPlay is in use), mpv for live channels given as raw
.ts, MKV, AVI and other containers. If one can't start a title, the other gets one try, and the one that worked is used for that title until the app quits. AirPlay is offered only while AVPlayer plays. - Browser HLS.js is pinned to 1.7.3; Safari/native HLS and Samsung AVPlay are separate adapters. MKV/AVI and some codecs will not play in the browser or on Samsung without remuxing/transcoding. That service is not implemented.
- Series listings require episode resolution rather than direct playable stream URLs. Series/episode browsing is not implemented.
- No guide schedules were extracted. Import matching XMLTV to populate the guide. No Xtream login/automatic catalog refresh UI, catch-up, DVR, multiview, DRM or cloud sync.
- Imported large catalogs render in pages of 48. M3U text import retains its 5 MB/10,000-entry limit; the private JSON path supports the larger migrated library.
- Ordinary M3U “Remember” is explicit opt-in and uses unencrypted browser/TV local storage. The native JSON path uses encrypted storage. Reset clears browser preferences; it does not delete the native encrypted file or the relay's source catalog.
Run npm run check before calling a change done. See VERIFICATION.md for observed results and remaining device checks.
Provider subscriptions remain with their providers.
Original code and artwork: MIT. Third-party and media notices: NOTICE.md.