M3U (MP3 URL) is a file format originally developed for audio playlists. In the IPTV world, it's a simple text file or URL that contains a list of channels with their streaming URLs, channel names, and sometimes additional metadata.
How It Works
Your IPTV player downloads the M3U file from the provided URL, parses the channel list, and creates your TV guide. It's simple and universal.
File Structure
Each line contains either a channel name (starting with #EXTINF) or the streaming URL. The player reads this sequentially to build the channel list.
#EXTINF:-1 tvg-id="BBC1" tvg-name="BBC One" tvg-logo="logo.png",BBC One
http://server.stream/bbc1.ts
#EXTINF:-1 tvg-id="ITV" tvg-name="ITV" tvg-logo="logo.png",ITV
http://server.stream/itv.ts