- Kotlin 79.9%
- TypeScript 11.4%
- JavaScript 3.2%
- CSS 2.7%
- Shell 2.6%
- Other 0.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
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 |
||
| .forgejo/workflows | ||
| app | ||
| docs | ||
| gradle | ||
| remote | ||
| scripts | ||
| .gitignore | ||
| build.gradle.kts | ||
| CLAUDE.md | ||
| CONTEXT.md | ||
| gradle.properties | ||
| gradlew | ||
| gradlew.bat | ||
| LICENSE | ||
| README.md | ||
| README.vi.md | ||
| renovate.json | ||
| settings.gradle.kts | ||
KaraTV
English | Tiếng Việt
Karaoke for Android TV: pick songs from your phone, sing on the big screen.
Screenshots
| Home | Player | Phone |
|---|---|---|
![]() |
![]() |
![]() |
| Phone Remote | Settings |
|---|---|
![]() |
![]() |
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
- Download the latest APK from Releases.
- 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.
- 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
- Open KaraTV on the TV.
- Go to the Phone screen and scan the QR code with your phone (or open the shown address).
- Search for a song on your phone and add it to the queue.
- 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.




