Tuvora is a free, open-source IPTV and media player. You add an M3U playlist, an Xtream Codes login or a Stalker portal, and you get live TV with a programme guide, catch-up, movies and series. It ships on Android phones, Android TV, iPhone and iPad, Apple TV, and desktop (Windows, macOS, Linux).
That is five apps. Here is how they share code, and where sharing stops.
The split
| App | UI | Shared logic |
|---|---|---|
| Android + iPhone/iPad | Compose Multiplatform | commonMain (one Kotlin source set, ~1,500 files) |
| Apple TV | SwiftUI | the same commonMain, compiled for tvOS |
| Desktop | Compose Multiplatform | a fork of the mobile project |
| Android TV | Jetpack Compose for TV | its own codebase |
The rule we follow: pure logic is shared; anything that touches the OS is written per platform. Playlist parsers, EPG matching, URL builders for Xtream and Stalker, sync payloads, retry and freeze policies all live in common Kotlin and are tested once. Players, background work, storage paths, memory signals and notifications get a separate implementation on each OS (expect/actual, or native bridges).
Apple TV without Compose
Compose Multiplatform doesn't target tvOS, and focus-driven TV UI wants native SwiftUI anyway. So the Apple TV app is SwiftUI, but it does not reimplement anything. A small Gradle module compiles the mobile app's commonMain and iosMain for the tvOS targets, excludes the few files that can't build there, and adds thin facades. SwiftUI calls Kotlin through them. A fix in the shared playlist or EPG code reaches Apple TV with no extra work. A new screen still has to be built twice.
Players are the part you can't share
Live IPTV is hostile to players: single-use stream links, MPEG-TS over plain HTTP, broken timestamps, providers that trickle bytes. No single engine handles all of it on every device, so each platform runs what works best there:
- Android and Android TV: Media3/ExoPlayer for live, with libmpv as a manual option.
- iPhone, iPad, Apple TV: AVPlayer where it copes, libmpv where it doesn't.
- Desktop: libmpv.
What is shared is the decision layer: when a stream counts as frozen, when to reconnect, when to fall back to another engine, and when to give up and show an error with a Retry button. Those are small pure Kotlin policy objects with unit tests, so the five players behave the same even though the engines differ.
Rules that kept five apps in step
- A fix isn't done until every app that has the code has it. Most bugs exist in all five; a fix that lands in one app leaves four broken.
- Every loading state has a deadline. "Live TV spins forever" came back four times, once per code path, until loading went through one helper that always ends in Loaded, Empty or Failed. An architecture test now fails the build on a loading flag set any other way.
- Polling is delta-shaped and lifecycle-bound. One screen that re-downloaded a full payload every two minutes to pick up a few kilobytes of changes cost more backend bandwidth than everything else combined.
- Tests run on both Kotlin runners. A Kotlin/Native-only crash shipped once while hundreds of JVM tests were green.
Try it
Tuvora is free with no ads, and the source is on GitHub under GPL-3.0:
- Website and downloads: https://tuvora.co
- How the code is organised: https://tuvora.co/open-source-iptv-player
- Android and iOS source: https://github.com/paradox-kush/TuvoraMobile
- Desktop source: https://github.com/paradox-kush/TuvoraDesktop
- Android TV source: https://github.com/paradox-kush/TuvoraTV
Tuvora is a player only. It doesn't include or sell any channels; you bring your own playlist.
