A production-grade music player for Android and the web with a native Media3 playback engine, a real local library, synced lyrics, phone-to-phone sharing and a theme engine that paints the interface from the album artwork.

Wave Player is a music player built as a single React and TypeScript codebase that ships to Android through Capacitor while the same interface runs in the browser. On Android, playback lives in a native Media3/ExoPlayer foreground service rather than the WebView, so audio survives backgrounding, screen-off and process death while the JavaScript layer mirrors what the native player is doing through a typed Capacitor plugin. The app indexes the local library into SQLite, reads embedded metadata and artwork, and builds albums, artists, genres, playlists, favorites and play history on top of it. Its theme engine extracts a perceptual palette from the current cover, enforces WCAG contrast, and offers 23 presets. It ships synced lyrics with encoding-tolerant .lrc import and an online lookup service, phone-to-phone library sharing over the local network with QR pairing, live metadata and cover editing, a sleep timer, an equalizer and full English/Persian RTL support. A companion Go service at waveplayer.ir serves the product page, the lyrics API, app updates and the release dashboard.
Serving one interface from two unrelated playback engines, HTML5 audio in the browser and a native Media3 service on Android, without the UI seeing the difference
Keeping playback alive through backgrounding, screen-off and process death while the JavaScript state stays honest about what the native player is doing
Deriving a readable palette from arbitrary album artwork and applying it across 23 themes, light and dark modes and RTL layouts
Handling real-world lyrics: mixed encodings, drifting timestamps and songs that simply have none, on a service that must fail quietly when offline
Editing track metadata and artwork while that track is playing, without interrupting playback or leaving the notification and lock screen showing stale data
Put playback behind a shared PlayerService contract with web and Android adapters; the native service owns the queue and position and sends throttled, batched position events that JS mirrors
Persisted playback state, a foreground media service with audio focus and headphone handling, and queue/position snapshots written on a trailing throttle and on page hide
A perceptual palette extractor with WCAG-aware contrast enforcement and theme tokens that work in both writing directions without a second stylesheet
Encoding-tolerant .lrc and .txt import, per-line timestamps with a manual offset, cached remote lookups with a negative cache, and no bundled placeholder lyrics
Replacing the media item inside the live Media3 queue at the same position when tags change, so the UI, notification and lock screen all update without a track change