TV apps
The OwnTube TV app runs on Apple TV, Android TV and Fire TV. It connects to your server, signs in with a pairing code and plays through the platform's own video player.
What it does
- Home shows Continue watching and then the blocks of your web home page as rows.
- Sections in the sidebar: Home, Search, Queue, Subscriptions, Recommended, Trending, Shorts, Saved, Playlists, History and Settings. The order is editable.
- Long-press OK on any video for its menu: queue, save, add to playlist, mark watched, not interested, go to channel.
- Player with quality, captions, audio language, speed, chapters, SponsorBlock skips, live streams and an Up next card that continues through the queue, a playlist or the row the video came from.
- Profiles: pair several accounts and choose at start-up.
- Android TV: unfinished videos in the launcher's Continue watching row, OwnTube in "Open with" for YouTube links, and Play on TV from the web watch page.
- Apple TV: a Top Shelf and the Menu button behaving as expected.
Playback quality, autoplay, SponsorBlock and home blocks come from the account's settings on the server. Sidebar order, text size, caption language and speed are kept per TV.
Connect and sign in
- Open the app. It asks for the server address, the same one you open in a browser (for example
https://tube.example.orgorhttp://192.168.1.10:3000), and checks that OwnTube answers there. - The TV shows a pairing code and a QR code. Scan it, or open
/tv/pairon the server while signed in, and approve the code. Codes expire after 10 minutes. - To add another account, go to Settings → Switch or add profile.
Email and password sign-in is available as a fallback. Settings → Server → Change server signs out and asks for a new address.
Build for Android TV and Fire TV
The TV app is installed on its own, outside the main workspace. You need Node.js 24+, pnpm, a JDK and the Android SDK, or the reactnativecommunity/react-native-android Docker image. Gradle installs missing SDK parts (NDK 27.1, SDK 37) on the first build.
cd apps/tv
pnpm install
EXPO_PUBLIC_OWNTUBE_URL=https://tube.example.org CI=1 pnpm run prebuild
cd android
EXPO_PUBLIC_OWNTUBE_URL=https://tube.example.org NODE_ENV=production \
./gradlew assembleRelease -PreactNativeArchitectures=arm64-v8a,armeabi-v7a --no-daemon
The APK ends up in android/app/build/outputs/apk/release/app-release.apk. EXPO_PUBLIC_OWNTUBE_URL is only the address pre-filled on first start.
Signing
Without a keystore the release build is signed with the debug key. To sign with your own key, create one once and point the build at it, for both prebuild and Gradle:
keytool -genkeypair -v -keystore owntube-tv.jks -alias owntube-tv \
-keyalg RSA -keysize 2048 -validity 10000
export OWNTUBE_TV_KEYSTORE=$PWD/owntube-tv.jks
export OWNTUBE_TV_KEYSTORE_PASSWORD=…
Android refuses to update an app whose signature changed: a TV with a debug-signed build has to uninstall it before the first release-signed install.
Install
Enable developer options and network debugging on the TV, then:
adb connect <tv-ip>
adb install -r app-release.apk
Alternatively publish the APK on your server (below) and install it with the Downloader app.
Updates over your server
The server can offer new TV builds. Put the APK and an update.json in the TV releases directory, by default data/tv-releases/ in the owntube-data volume:
{
"version": "0.5.0",
"versionCode": 500,
"apkUrl": "/tv/download/owntube-tv-0.5.0.apk",
"notes": "What changed"
}
The server serves it at /tv/update.json and the APK at /tv/download/<file>.apk. Settings → About on the TV shows "Update available" with the download address. versionCode is major × 10000 + minor × 100 + patch.
Build for Apple TV
Needs a Mac with Xcode.
cd apps/tv
pnpm install
EXPO_PUBLIC_OWNTUBE_URL=https://tube.example.org pnpm run prebuild:tvos
pnpm run tvos # build and run on the tvOS simulator
To install on an Apple TV, open the generated workspace in ios/ with Xcode, select your team under Signing & Capabilities for the app and the Top Shelf target, choose the Apple TV as destination and run.