[Feature]: Android TV / Fire TV packaging target for the TV client

Open
#2,136 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
android, kotlin, typescript
Domain
desktop, mobile

Research direction

Read apps/tv/PRODUCT.md, apps/tv packaging configuration, libs/tv/data-access/src/player.ts, and docs/development/tv-development.md to understand the existing TV client and webOS target. The proposed work spans a Kotlin Android TV shell, a native player bridge, packaging, and device validation, and the issue asks maintainers to decide whether and where it should live before work starts.

Written by the indexing model from the issue text.

Description

Before you submit
  • I searched the existing issues and this hasn't been requested yet. (#505 asked how to install on Android or Fire TV and was closed with "there is no version for Android". #1337 covers remote-only navigation in the desktop app, which is a different request.)
  • I removed usernames, passwords, MAC addresses, tokens and private URLs from any examples or screenshots I share.
What problem would this solve?

Android TV and Fire TV (Firestick) are probably the most common living-room IPTV devices, and today there's no IPTVnator build for them. The new TV client in apps/tv already does the hard part for a television: directional focus, platform Back, phone-assisted setup, and Xtream/Stalker/M3U sources. But it is only packaged for webOS (ares-package).

What would you like to happen?

I'd like to ask whether you would accept an Android TV packaging target for the existing TV client. This would not be a new client or a port of the Angular/Electron app. I'd keep the scope deliberately small and consistent with apps/tv/PRODUCT.md:

  1. A thin Android TV shell (for example apps/tv-android): a minimal Kotlin app with a full-screen WebView that loads the built dist/apps/tv from bundled assets, plus a Leanback launcher banner. Android's Back key would be routed to the existing platformBack / Back handling. Same backend model as webOS: the user selects a matching IPTVnator web backend.
  2. An Android implementation behind the existing single native video adapter (libs/tv/data-access/src/player.ts), backed by Media3/ExoPlayer through a small JS bridge. Fire TV's WebView <video> support for HLS and for codecs like HEVC and AC3 is inconsistent, and ExoPlayer is what native Android TV players use. If you'd rather start with plain <video>, the shell alone could land first.
  3. Validation on an Android TV emulator (API 28/30) plus a real Fire TV Stick, documented alongside docs/development/tv-development.md. Browser and emulator tests would stay development evidence, not device certification, matching the existing wording.

No changes to the webOS path, the Chromium 68 build target, or the Angular app.

Questions before I start:

  • Would you take this upstream, given the TV client is described as secondary and experimental? Or would you prefer it to live in a separate repo that consumes the apps/tv build?
  • Any constraints on where Android/Gradle sources should live in the Nx workspace, or on CI (Gradle builds in GitHub Actions)?
  • Any preference on ExoPlayer vs. WebView <video> for the first version?
Area

Installation, updates and packaging; Playback and player controls

Source types

All sources

Alternatives you've considered

Sideloading the self-hosted web app in a Fire TV browser works poorly with a remote. A fork that only adds the shell and player adapter is possible, but I'd much rather contribute it here if it fits your plans.

Would you like to help?

Yes, I'd like to open a pull request

Dominant language
TypeScript
Stars
7.3k
Forks
937
Avg merge
1d 4h
Merged PRs (30d)
210

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 4gray/iptvnator

All issues in 4gray/iptvnator

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.