Manuel Roldán
LinkedIn GitHub CV ES
Manuel Roldán

IPTV player for TV and mobile

Bengala

An IPTV player that turns your channel list into a real TV.

What
IPTV player for the TV, with a home server
Sources
The user’s M3U lists, provider accounts and XMLTV guide
Status
Closed testing on Google Play, in review at LG
Screens
Android TV, Google TV, Fire TV, LG webOS and mobile
Quality
Up to 4K HDR and Dolby Vision
Languages
20
Stack
Kotlin Multiplatform, Jetpack Compose and Media3. Preact and a custom WebGL engine. FFmpeg. Cloudflare Workers, D1 and Durable Objects
What
IPTV player for the TV, with a home server
Sources
The user’s M3U lists, provider accounts and XMLTV guide
Status
Closed testing on Google Play, in review at LG
Screens
Android TV, Google TV, Fire TV, LG webOS and mobile
Quality
Up to 4K HDR and Dolby Vision
Languages
20
Stack
Kotlin Multiplatform, Jetpack Compose and Media3. Preact and a custom WebGL engine. FFmpeg. Cloudflare Workers, D1 and Durable Objects

The goal

Make an IPTV list with tens of thousands of entries feel like normal TV: fast even on cheap TVs, easy with a remote, in sync across screens, and able to play your own videos away from home without going through the cloud.

Bengala ships no channels. You give it your M3U list or your IPTV provider account and it turns that into a full TV app: live channels with a guide, films and series with artwork, profiles and “Continue watching”. With Bengala at home, it also plays the videos on your PC, at home or away.

  1. 01

    Read

    It streams the M3U list instead of loading it all into memory, so it opens lists with tens of thousands of entries even on modest TVs.

  2. 02

    Clean up

    It normalises titles and gives every channel and film a stable identity. If the provider renames or reorders the list, your favourites and progress stay put.

  3. 03

    Guide

    It matches the XMLTV programme guide to the channels to show what’s on now, past shows and reminders.

  4. 04

    Catalogue

    It splits live TV, films and series, with artwork, seasons and episodes, and syncs it encrypted across your screens.

Who’s watching?

Profiles

Everyone has their own profile and “Continue watching”. There’s a kids profile, a parental PIN and blocked categories.

Add a list from your phone

The TV shows a QR code and your phone sends it the list over Wi-Fi, with no typing on the remote.

Mobile app

The same account on every screen. Lists, favourites and progress are encrypted on the device and kept in sync.

Programme guide

With past shows, start-over and reminders.

Live TV

Channels by category, with what’s on now and next.

More features

No dropouts

If a channel goes down, Bengala quietly switches to the same channel in another of your lists. On Android, and off by default.

Audio and HDR

It decodes AC-3, E-AC-3 and DTS in software when the TV can’t, and plays Dolby Vision profile 7 on its HDR10 base layer.

Built for the TV

It measures the panel’s real refresh rate, because many TVs run at 50 Hz while reporting 60. Twenty languages, three text sizes and screen reader support.

Engineering

Video goes straight from your PC to the TV, never through the cloud.

Your screens

one shared Kotlin Multiplatform core

  • Android TV: Compose and Media3
  • LG webOS: Preact and a custom WebGL engine
  • Phone and tablet: Compose
account and sync

bengala.tv

Cloudflare Workers

  • Accounts and encrypted sync (D1)
  • One Durable Object per account to pair TV and PC
  • No video
pairing; video goes direct

Bengala at home

Windows server

  • Library over HTTP, found via mDNS
  • FFmpeg on the GPU: NVENC, AMF or QSV
  • Adaptive HLS up to 4K HDR10
  1. Startup on Android TV

    70% of startup time went on reading a large file on the main thread. Now a compact copy is read in the background.

    Before3.7 s
    Now0.75 s
  2. A custom graphics engine for LG

    On webOS, an HTML interface at 4K dropped too many frames and Lightning.js wasn’t enough either, so I wrote an engine in WebGL.

    HTML at 4K23% dropped frames
    WebGL engine3%
  3. Access away from home

    Bengala at home reaches the TV through a TCP tunnel with custom hole punching, in parallel with a WebRTC channel. Whichever connects first is used.

    WebRTC30–39 Mbit/s
    Custom tunnel80–92 Mbit/s
  4. Low-end TVs

    The most modest test TV has 929 MB of RAM and an OpenGL ES 2.0 GPU, and it loads lists of about 64,000 entries. On first launch, Bengala measures the GPU and adjusts the interface quality.

The result

In closed testing on Google Play and in review on LG’s store. It starts in 0.75 s on a real Android TV and runs on TVs with 929 MB of RAM.

Bengala plays the sources each user provides. It doesn’t include or sell any content.