Independent reference site on IPTVWe sell nothingENSvenska
Home How IPTV works
The basics

How does IPTV work?

Updated 10 September 2026 · About 7 minutes

Short answer

The broadcast is encoded, cut into segments a few seconds long, and placed on a server. Your app fetches them in order and plays each one while the next downloads.

That is why there is a 10–30 second delay, and why the picture breaks up when a single segment arrives late.

A circuit board photographed close up

The chain, in five steps

The same five steps apply whether the broadcast comes from a telecom operator or from a service on the open internet. What differs is who owns which step.

  1. Reception. The original broadcast is received — from satellite, over fibre, or direct from the rightsholder.
  2. Encoding. The picture is compressed to a manageable size, in practice always with H.264 or H.265. This is where bitrate is decided, and so both how good it looks and how much data it uses.
  3. Segmentation. The stream is cut into pieces, typically 2 to 6 seconds each. Every piece becomes its own file, and a playlist keeps track of the order.
  4. Distribution. The segments are placed on servers, often in several countries, so that each viewer fetches from the nearest one.
  5. Playback. Your app reads the playlist, fetches the next segments, decodes and displays. Then it starts again.

Step five repeats roughly every three seconds, all evening. It is not a broadcast in progress — it is thousands of small downloads in quick succession.

Why the stream is cut into pieces

It would be simpler to send one long stream. Segmentation exists because it solves three problems at once.

ProblemWhat segments solve
The network hiccups for a secondOnly one segment is lost, and the app already holds the next few. The viewer notices nothing
The connection fluctuatesThe same channel exists at several qualities, and the app switches between them segment by segment — which is why the picture can go soft for ten seconds and then sharpen again
Networks and firewalls block unusual protocolsSegments are fetched over ordinary HTTP on port 443. To the network it looks like web traffic, because it is

The format is HLS, HTTP Live Streaming, specified in RFC 8216. Originally developed by Apple for the iPhone, it now underpins most video delivery on the internet.

The quality switching in the middle row has a name: adaptive bitrate. It is one reason IPTV rarely stops outright and instead degrades gradually. The service trades sharpness to avoid pausing.

The delay, and why it cannot be removed

The player must hold a couple of segments before it starts. Otherwise every small interruption would be a black frame. That buffer costs time.

Segment length2–6 seconds

Shorter segments mean lower latency but more requests and more fragile playback.

Buffer before playback startsusually 3 segments

This margin is what keeps a dropped segment invisible.

Total delay vs terrestrial broadcast10–30 seconds

It is why you hear the neighbours celebrate first. Not a fault, and no setting fixes it.

Some services run low-latency HLS and get down to a few seconds. It costs stability, and for most viewers a steady picture twenty seconds behind is the better trade.

M3U, EPG and Xtream Codes

Three formats appear the moment you configure anything, and all three are simpler than they sound.

WhatWhat it isWhat it is not
M3U / M3U8A text file listing channels and the address of each streamContains no video. Not a service. Not encrypted
XMLTVThe programme guide as an XML file: what is on, when, on which channelUnrelated to the channel list — they often come from different sources
Xtream CodesAn API. You give a server address, username and password, and the app fetches everythingNot a file format, and not a company you buy from. Just an interface

The practical difference: an M3U file is a snapshot that goes stale. Xtream Codes refreshes when the line-up changes, without you doing anything. That is why nearly every subscription service uses the latter, and why most apps ask for three fields.

Your M3U URL contains your password

Look at a typical M3U address and you will find the username and password in plain text inside it. Anyone who has that URL has your subscription. Do not paste it into a forum, a chat, or a support ticket.

Where the chain actually breaks

WhereHow oftenWhat it looks like
Wi-Fi between router and TVMost common by a distanceWorse in the evening, better near the router
The playback deviceSecond most commonOnly motion breaks up. Dialogue scenes are flawless
Load at the sourceHappensEvery channel at once, always the same hours
Your ISPUncommonOther internet use is slow too
A fault in the TVAlmost neverIt is not the TV
The red row is where people most often land, and it is almost always wrong.

The one worth memorising is the second: a network problem degrades everything; a decoding problem degrades only motion. If dialogue looks perfect while a camera pan turns to mush, the fault is in the device, not the connection.

Frequently asked questions

How does IPTV work technically?
The broadcast is encoded into a digital stream, cut into segments a few seconds long, and placed on a server. Your app fetches the segments in order over ordinary HTTP and plays each one while the next downloads. The format is usually HLS, specified in RFC 8216.
Why is there a delay compared with broadcast TV?
Because the player must hold a few segments in memory before it starts, or the smallest hiccup would become a black screen. That buffer is typically three segments of 2–6 seconds, which puts IPTV 10 to 30 seconds behind terrestrial broadcast.
What is an M3U file?
A plain text file listing the channels and where each channel's stream lives. It contains no video at all — it is an index. Opened in a text editor it shows one entry per channel.
What is the Xtream Codes API?
An interface many subscription services expose instead of a static M3U file. You supply a server address, a username and a password, and the app fetches the channel list, the guide and the on-demand library automatically — and refreshes them when the line-up changes.
Where in the chain do problems usually occur?
Almost always in the last ten metres. Wi-Fi between the router and the TV is the most common bottleneck, followed by an underpowered playback device. The source is the least likely explanation even though it is the first one people suspect.

Sources