PlayerStream
EN
Ko-fi

Guides / Live TV

Channel list

M3U and W3U lists.

The simplest way to provide your channels: a text file with each channel and its address. This is what PlayerStream understands in it.

Only channels you have permission for. PlayerStream does not include or recommend lists or channels. Whoever makes a list is responsible for it, and whoever adds something to the app, for what they add: only streams you have the right to provide or watch.

01

A minimal list.

This one works as is: a test channel that plays the Sintel trailer (Blender Foundation, CC BY 3.0). Save it as lista.m3u in UTF-8.

lista.m3u
#EXTM3U
#EXTINF:-1 tvg-id="one.northwind.example" tvg-chno="1" group-title="General",Northwind One
https://download.blender.org/durian/trailer/sintel_trailer-720p.mp4

And a fuller one, with a guide, logos, groups, headers and catch-up (replace tu-sitio.example with your address):

lista.m3u
#EXTM3U url-tvg="https://tu-sitio.example/tv/guia.xml.gz"
#EXTINF:-1 tvg-id="one.northwind.example" tvg-chno="1" tvg-logo="https://tu-sitio.example/tv/logos/1.png" group-title="General",Northwind One
https://tu-sitio.example/live/demo1/index.m3u8
#EXTINF:-1 tvg-id="news.northwind.example" tvg-chno="2" tvg-logo="https://tu-sitio.example/tv/logos/2.png" group-title="News;Local",Northwind News
#EXTVLCOPT:http-referrer=https://tu-sitio.example/
https://tu-sitio.example/live/demo2/index.m3u8
#EXTINF:-1 tvg-id="fable.example" tvg-chno="5" group-title="Movies" catchup="append" catchup-days="3" catchup-source="?start={utc}&end={utcend}",Fable Cinema
https://tu-sitio.example/live/demo5/index.m3u8
AndroidAndroid TVWindowsWeb version

In the web version: the list and the streams over https with CORS, and without the headers the browser doesn't allow (User-Agent, Referer…).

02

The attributes.

In the #EXTM3U header: the list's guide, in url-tvg (also x-tvg-url or tvg-url; several, comma-separated). The app doesn't add it on its own: it asks whether to add it. And catch-up for the whole list (below).

In each #EXTINF, the name goes after the first comma outside quotes. Attributes can use double quotes, single quotes or none, and are case-insensitive:

AttributeWhat for
tvg-idIts id in the XMLTV guide; also used to merge duplicate channels.
tvg-nameThe name in the guide, if it doesn't match the visible one. If the name is missing, this one is used.
tvg-logo or logoThe logo.
tvg-chno, channel-number, tvg-numThe number (0 to 99,999).
group-titleThe group. With ; (“News;Local”), the channel appears in both. Without it, #EXTGRP:.
catchup, catchup-days, catchup-sourceCatch-up for that channel (overrides the header's).
tvg-user-agent, http-referrerThe channel's User-Agent and Referer.
license_type, license_keyProtection, if it isn't in #KODIPROP.

Supported addresses: http and https (HLS .m3u8, DASH .mpd or a continuous stream) and Ace Stream, with its official app. udp, rtp, rtsp, rtmp and mms are not supported. A list can link to other lists (up to 3 levels).

03

Headers.

If your server requires headers, there are four ways (those in the address win):

headers in the list
#EXTINF:-1 tvg-id="news.northwind.example",Northwind News
#EXTVLCOPT:http-user-agent=MiReproductor/1.0
#EXTVLCOPT:http-referrer=https://tu-sitio.example/
#EXTHTTP:{"Origin":"https://tu-sitio.example"}
https://tu-sitio.example/live/demo2/index.m3u8|User-Agent=MiReproductor%2F1.0&Referer=https%3A%2F%2Ftu-sitio.example%2F
  • #EXTVLCOPT: only http-user-agent, http-referrer (or http-referer), http-origin and http-cookie. Other VLC options are ignored.
  • #EXTHTTP: a JSON with the headers.
  • #KODIPROP:inputstream.adaptive.stream_headers=A=B&C=D (or common_headers, manifest_headers).
  • url|Header=value&Other=value, with the values escaped.
  • Without a User-Agent, the app sends “PlayerStream”.
04

Catch-up.

If your server keeps what has already aired: catchup (or catchup-type), catchup-days (or timeshift; 1 day by default; up to 365) and catchup-source (the template). Types: default, append, shift (or timeshift), flussonic (fs, flussonic-hls, flussonic-ts) and xc. With no type: with a template, default; without one, shift.

The template placeholders ({utc}, {utcend}, {duration}, {Y}-{m}-{d}…) and each type are in PlayerStream extensions: they're the same. catchup-correction is not used. Catch-up is a Lite+ feature.

05

Protection.

For your encrypted streams, with #KODIPROP before the address:

ClearKey
#EXTINF:-1 tvg-id="orbit.example",Orbit
#KODIPROP:inputstream.adaptive.license_type=clearkey
#KODIPROP:inputstream.adaptive.license_key=TU_KID_EN_32_HEX:TU_CLAVE_EN_32_HEX
https://tu-sitio.example/live/demo3/manifest.mpd
Widevine
#EXTINF:-1 tvg-id="pipsqueak.example",Pipsqueak
#KODIPROP:inputstream.adaptive.license_type=com.widevine.alpha
#KODIPROP:inputstream.adaptive.license_key=https://tu-sitio.example/licencia|Authorization=Bearer%20TU_PERMISO||
https://tu-sitio.example/live/demo4/manifest.mpd
  • ClearKey: kid:key pairs (32 hex characters or 16 bytes in base64), a {"keys":[{"kid","k"}]} JSON or the address of a ClearKey license server.
  • Widevine: address|headers|body|response. Body: empty or R{SSM}, b{SSM}, B{SSM}. Response: empty, B, J<field> or JB<field>. Uses the device's Widevine (not on Windows).
  • Also #KODIPROP:inputstream.adaptive.drm_legacy=type|license|headers and Kodi 21's drm JSON.
  • PlayReady and FairPlay are not supported, nor are {SID}/{KID} in the license address. The app never bypasses protection.
06

W3U and other formats.

The app recognizes the format by its content, not by the extension. A W3U list (JSON):

lista.w3u
{
  "name": "Demo TV (example)",
  "groups": [
    {
      "name": "General",
      "stations": [
        {
          "name": "Northwind One",
          "url": "https://download.blender.org/durian/trailer/sintel_trailer-720p.mp4",
          "image": "https://tu-sitio.example/tv/logos/1.png",
          "epgId": "one.northwind.example"
        }
      ]
    }
  ]
}
  • W3U: groups (nested: “Group · Subgroup”) and stations. Each station: url or link, name or title, image/icon/logo, epgId/tvg-id, referer, userAgent, origin and headers. A group with a url and no stations is another list. Stations with isHost or embed don't work (they're web pages).
  • PLS: FileN and TitleN.
  • XSPF: each <track> with <location>, <title>, <image> and <album> (the group).
  • Enigma2: a bouquet (#SERVICE and #DESCRIPTION) or the address of a receiver running OpenWebif (not in the web version).
07

Adding it in the app.

  1. Settings → Content → Live TV → under “Add TV”, “Channel list”.
  2. “Name (optional)” and “List address”. On phones and PCs there's also “Choose a file on the device” (not on the TV). Tap “Add”.
  3. If the list includes its guide (url-tvg), the app asks: “Add the guide” or “Not now”.
  4. In the list's box: how many channels and how many have a guide. They're already in the TV tab.
Settings, Live TV, empty: “Add TV” with the buttons Channel list, EPG guide, Xtream Codes and Stalker portal
Settings → Content → Live TV, freshly installed.
The “Add a channel list” dialog with the name Demo TV and the test list's address
“Add a channel list”, with the test list.
The notice “This playlist includes its guide” with the buttons “Add the guide” and “Not now”
The list includes its guide: “Add the guide”.
The TV tab with the six test channels, their numbers, logos, groups and what's on now and next
The TV tab with the test list: number, logo, group and what's on (from its guide).
08

Common errors.

The app saysWhat's wrong
“It is not a channel list (it has no channels).”There's no channel with a valid address.
“Its channels cannot be opened here (udp, rtp…).”All the addresses are of a type the app doesn't open.
“The server cannot be found…”, “Not responding…”The address doesn't exist or is slow (15 s to connect and 60 to download).
“The server denies access (HTTP 401/403).”It requires a username, password or headers.
Garbled charactersThe list isn't in UTF-8 (the app always reads it as UTF-8).
Channels without a guideThe tvg-id doesn't match the guide: see how they're matched.

A gzip-compressed list is decompressed automatically. Limits: 300,000 channels per list and lines of up to 256 KB.