No description
  • Kotlin 79.9%
  • TypeScript 11.4%
  • JavaScript 3.2%
  • CSS 2.7%
  • Shell 2.6%
  • Other 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Phan Huu Loi 87db9fcb7e
All checks were successful
Release PR / release-pr (push) Successful in 4s
CI / build (push) Successful in 4m50s
Remove room code and token pairing (#32)
There is only ever one TV per network, so the 6-digit room code and the token behind it added a pairing step without real value. Any phone on the same Wi-Fi now opens `http://<ip>:<port>/` (or scans the QR) and controls the TV right away. Optional Host mode (ADR 0006) remains the way to limit what phones can do.

## Changes
- **TV:** removed the room code row in Settings, the code and "Đổi mã" button in the QR dialog, and the code line on the splash. The QR now encodes just the address.
- **Server:** removed `/api/pair`, its rate limit, and every token check (`/api/*`, `/ws`). Host key relay is kept (`watchHostKeys`).
- **Remote:** removed the room code screen; the name screen is now first. On load, a leftover `kara.token` and a stale `?t=` from old QR links are cleaned up.
- **Compat:** old saved state with `roomCode`/`token` still decodes (`ignoreUnknownKeys`, covered by a test).
- **Docs:** protocol, CONTEXT, ADR 0004/0006 (update notes), READMEs, dev-preview and the mock server.

## Testing
- `./gradlew :app:compileDebugKotlin :app:testDebugUnitTest`: pass (new test: API and WebSocket work without a token).
- `remote`: typecheck + build pass.
- Not tried on a TV or emulator yet.

## Follow-up
- `docs/images/pair.png` still shows the old dialog with the room code; it needs a fresh screenshot.

Vi: Bỏ mã phòng, điện thoại cùng Wi-Fi mở địa chỉ TV là điều khiển được ngay
Co-authored-by: nezumi <123229563+Nezumi-2711@users.noreply.github.com>
Reviewed-on: #32
2026-11-22 08:46:09 +00:00
.forgejo/workflows CI: fail release fast on non-x86_64 runners (#30) 2026-11-22 08:41:39 +00:00
app Remove room code and token pairing (#32) 2026-11-22 08:46:09 +00:00
docs Remove room code and token pairing (#32) 2026-11-22 08:46:09 +00:00
gradle Update all dependencies from the Renovate dashboard (#8) 2026-11-21 11:25:51 +00:00
remote Remove room code and token pairing (#32) 2026-11-22 08:46:09 +00:00
scripts Add host mode to limit what phones can control 2026-11-22 14:30:53 +07:00
.gitignore KaraTV MVP: Android TV karaoke app, phone remote, CI/CD 2026-11-21 12:07:27 +07:00
build.gradle.kts Update all dependencies from the Renovate dashboard (#8) 2026-11-21 11:25:51 +00:00
CLAUDE.md Add CLAUDE.md requiring a Vietnamese Vi: trailer on commits [skip ci] 2026-11-22 10:28:45 +07:00
CONTEXT.md Remove room code and token pairing (#32) 2026-11-22 08:46:09 +00:00
gradle.properties KaraTV MVP: Android TV karaoke app, phone remote, CI/CD 2026-11-21 12:07:27 +07:00
gradlew KaraTV MVP: Android TV karaoke app, phone remote, CI/CD 2026-11-21 12:07:27 +07:00
gradlew.bat KaraTV MVP: Android TV karaoke app, phone remote, CI/CD 2026-11-21 12:07:27 +07:00
LICENSE Add bilingual README, MIT license and UI preview images [skip ci] 2026-11-22 11:30:10 +07:00
README.md Remove room code and token pairing (#32) 2026-11-22 08:46:09 +00:00
README.vi.md Remove room code and token pairing (#32) 2026-11-22 08:46:09 +00:00
renovate.json CI: dev branch verifies only, releases build on merge to main [skip release] (#9) 2026-11-21 11:38:08 +00:00
settings.gradle.kts KaraTV MVP: Android TV karaoke app, phone remote, CI/CD 2026-11-21 12:07:27 +07:00

KaraTV icon

KaraTV

English | Tiếng Việt

Karaoke for Android TV: pick songs from your phone, sing on the big screen.

Screenshots

Home Player Phone
Home screen: horizontal rows of suggested, favorite and recent songs Player screen with the queue overlay on the right Phone dialog with QR code
Phone Remote Settings
Remote web page on a phone: search and queue Settings screen: playback, appearance, connection, about

Design preview (prototype mock, not an actual device capture).

Features

  • Search YouTube karaoke videos (the app adds "karaoke" to your search; you can turn this off in the Remote).
  • Queue songs from any phone: add, play next, reorder, remove, pause, skip, restart, adjust volume.
  • Several phones can connect at the same time; each singer's name shows next to their song.
  • Favorites and History, shared by the whole family and stored on the TV.
  • Countdown screen between songs, configurable from 5 to 15 seconds (default 10).
  • Video quality: Auto, 720p or 1080p.
  • Vietnamese and English interface.
  • Built for the remote control (D-pad) with a stage-lights look.
  • In-app updates from Releases.

How it works

The TV app runs a small web server on your local network. Your phone opens a web page (the Remote) served by the TV, either by scanning a QR code or by typing IP:port. There is no pairing or login: anyone on the same Wi-Fi can use it (host mode can limit what phones may do). Both devices must be on the same Wi-Fi. Nothing needs to be installed on the phone.

Songs are searched and resolved to playable streams with NewPipeExtractor (no YouTube iframe, no API key). The UI is built with Compose for TV and playback uses Media3 ExoPlayer. The TV is the single source of truth: every command from a phone updates the TV state, which is then pushed back to all phones.

Requirements

  • Android TV 7.0 or newer (minSdk 24). Tested on FPT Play Box 650 (Android TV 11).
  • TV and phone on the same Wi-Fi network.
  • A phone with a web browser.

Install

  1. Download the latest APK from Releases.
  2. Copy it to the TV (USB drive, file transfer app, or a browser on the TV) and open it. On first install, allow unknown apps for the app you used to open the file.
  3. Later updates are in-app: Settings > Check for update.

Prefer the command line? adb install KaraTV.apk works too (use the actual file name you downloaded).

Quick start

  1. Open KaraTV on the TV.
  2. Go to the Phone screen and scan the QR code with your phone (or open the shown address).
  3. Search for a song on your phone and add it to the queue.
  4. Sing. The next song starts after a short countdown.

FAQ

Install

Is it free? Is it on Google Play?

Yes, it is free. It is a personal project distributed only as an APK (sideload). It is not on Google Play.

Usage

What do I need to sing?

An Android TV with KaraTV installed, a phone with a web browser, and both on the same Wi-Fi. No app is needed on the phone.

How do I control it from my phone?

The Remote is a web page. Scan the QR code on the TV's Phone screen, or open the IP:port shown there. Several phones can connect at once.

Troubleshooting

Video stutters or won't play?

Go to Settings > Video quality and try Auto, 720p or 1080p. In Auto mode the app falls back to 720p if playback fails. A video that cannot be played is skipped automatically. Keep the TV on a good Wi-Fi connection.

How do updates work? Why did an update fail?

The app checks Forgejo Releases when it opens (at most every 6 hours) and installs updates in-app. You can also check manually in Settings. An install fails if the new APK is signed with a different key than the installed one: uninstall the app, then install the new APK.

Phone browser shows ERR_TOO_MANY_RETRIES (Android 17+)?

Chrome and Edge on Android 17 need the "Nearby devices" permission (some builds call it "Local network") to open LAN addresses like 192.168.x.x. Go to Settings > Apps > Chrome > Permissions > Nearby devices > Allow, then reopen the address or rescan the QR code. This is needed once per browser per phone.

Build from source

Requirements: JDK 17, Android SDK, Node 22 and pnpm.

./gradlew assembleDebug        # build the debug APK
./gradlew testDebugUnitTest    # unit tests
cd remote && pnpm install && pnpm dev   # Remote dev server with a mock TV

More: CONTEXT.md (domain and architecture, in Vietnamese), docs/release.md, docs/protocol.md, docs/dev-preview.md, docs/adr/.

Disclaimer

KaraTV is a personal project. It is not affiliated with or endorsed by YouTube or Google. It is distributed only by sideloading and is not on Google Play. You are responsible for complying with YouTube's terms of service.

License

MIT, see LICENSE.