Skip to content

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 in the platform’s own video player.

  • Home: Continue watching, then the blocks of your home page as rows.
  • Sidebar: Home, Search (text and voice), Queue, Subscriptions, Recommended, Trending, Shorts, Saved, Playlists, History and Settings. You can change the order.
  • Long-press OK on a video for its menu: queue, save, add to playlist, mark watched, not interested, go to channel.
  • Player: 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 pick one at start-up.
  • Text size: Compact, Default or Large.
  • 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.
  • Apple TV: a Top Shelf with your videos.

Quality, autoplay, SponsorBlock and home blocks come from your account. Sidebar order, text size, caption language and speed are kept per TV.

  1. Open the app and enter your server’s address, the same one you use in a browser, such as https://tube.example.org or http://192.168.1.10:3000. The app checks that OwnTube answers there.

  2. The TV shows a code and a QR code. Scan the QR code with your phone, or open /tv/pair on the server while signed in, and approve the code. Codes expire after 10 minutes.

  3. To add someone else, 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.

The TV app is installed separately from the rest of the repository.

You need Node.js 24 or later, pnpm, a JDK and the Android SDK, or the reactnativecommunity/react-native-android Docker image. Gradle downloads missing SDK parts on the first build.

Terminal window
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 is written to android/app/build/outputs/apk/release/app-release.apk. EXPO_PUBLIC_OWNTUBE_URL only fills in the address on first start.

Signing. Without a keystore the build is signed with the debug key. To use your own key, create it once and set the variables for both prebuild and Gradle:

Terminal window
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 won’t update an app whose signature changed. A TV with a debug-signed build has to uninstall it before the first install of a release-signed one.

Install. Turn on developer options and network debugging on the TV, then:

Terminal window
adb connect <tv-address>
adb install -r app-release.apk

Or publish the APK on your server (below) and install it with the Downloader app.

The server can offer new Android TV builds. Put the APK and an update.json in the TV releases directory, data/tv-releases/ in the owntube-data volume by default:

update.json
{
"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.