Project 01
OrbitTV
A cable box, rebuilt as an Android TV app. Everything works from a normal TV remote.
- About 22,000 lines of Kotlin
- 109 tests

What I built
- A real channel guide that you scroll like a cable box. Type a channel number to jump straight to it.
- Live TV with an info banner, favorites and quick options.
- Picture-in-picture to watch two channels at once, in the corner and size you choose, and multi-view with up to four channels on screen.
- On demand movies and shows with “continue watching”, one search across live TV and on demand, and a high-contrast guide that’s easier to read.
- Jetpack Compose screens designed for a remote instead of a touchscreen, a small pool of video players that exist only while they’re on screen, and a SQLite database for channels, listings, favorites, search and where you stopped watching.
- Background channel and guide updates that wait until nothing is playing, unless the guide is about to run out.
The hard parts
A guide that unpacks to over 500 MB
One public TV guide holds 1.1 million listings for 13,000 channels, and the app needs about 160 of them. Reading it the normal way kept a processor core busy for a minute or two and made the picture stutter. The reader I wrote scans the raw bytes, checks which channel each listing belongs to, and skips the ones nobody needs.
A picture that never goes black
Moving from live TV to the guide used to restart the video, which could mean seconds of black screen. Now there’s one video view for the life of the app. It sits under every screen and simply moves and resizes.
Streams that drop
Some services close the connection about once a minute. The app reconnects underneath the player, so the picture keeps going from what’s already loaded. If a channel keeps stalling, it switches to another feed and remembers which ones have been unreliable.
Building a cushion
Live TV arrives in real time, so there’s normally nothing saved up for a bad moment. When the buffer runs low, OrbitTV plays 2% slower and keeps voices at the right pitch until it has enough in hand.
Matching channels
Services name the same channel in many different ways. The app strips out country tags, quality labels and punctuation, then matches each one to the right number in the lineup.
Testing
Tests cover the guide reader, channel matching, search and the database. Another set draws the app’s real screens without a TV, which is how the screenshots on this page were made.
Where it stands
The DVR screens are designed, but recording isn’t built yet. OrbitTV is only a player: it doesn’t come with any channels or TV service.
OrbitTV screenshots







