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):
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:
Attribute
What for
tvg-id
Its id in the XMLTV guide; also used to merge duplicate channels.
tvg-name
The name in the guide, if it doesn't match the visible one. If the name is missing, this one is used.
tvg-logo or logo
The logo.
tvg-chno, channel-number, tvg-num
The number (0 to 99,999).
group-title
The group. With ; (“News;Local”), the channel appears in both. Without it, #EXTGRP:.
catchup, catchup-days, catchup-source
Catch-up for that channel (overrides the header's).
tvg-user-agent, http-referrer
The channel's User-Agent and Referer.
license_type, license_key
Protection, 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):
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: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):
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.
Settings → Content → Live TV → under “Add TV”, “Channel list”.
“Name (optional)” and “List address”. On phones and PCs there's also “Choose a file on the device” (not on the TV). Tap “Add”.
If the list includes its guide (url-tvg), the app asks: “Add the guide” or “Not now”.
In the list's box: how many channels and how many have a guide. They're already in the TV tab.
Settings → Content → Live TV, freshly installed.
“Add a channel list”, with the test list.
The list includes its guide: “Add the guide”.
The TV tab with the test list: number, logo, group and what's on (from its guide).08
Common errors.
The app says
What'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 characters
The list isn't in UTF-8 (the app always reads it as UTF-8).