Players and formats
Xtream-compatible apps sign in through player_api.php. Players that take an M3U playlist use get.php for the channel list and xmltv.php for the programme guide. For MAG set-top boxes, enable the portal and register each device against a subscriber line. Standard playback uses HLS or MPEG-TS over HTTP, subject to what the player supports and which outputs you allow on the line and stream.
If you integrate a client that uses the BinStream engine, enable its API separately. The BinStream API guide covers the integration.
From source to player
The Publisher is the Load Balancer that pulls in the source and prepares segments. Relays serve segments from their caches and fetch missing ones from the Publisher. The Gateway checks the subscriber line, expiry and connection limit. Depending on the client, it serves the media or directs the player to an eligible edge server. Gateway and node services communicate using mutual TLS.
Relay failover and capacity
If a Relay becomes unavailable, playback can use another eligible node carrying the stream, provided it has capacity. Viewers may need to reconnect. Adding a Relay gives you another delivery route once you assign channels to it and it is ready to serve them. A Relay still needs a working Publisher to fetch segments it doesn’t have. Backup source URLs address a different failure: an interruption at the upstream provider.
Optional peer delivery
The NexgenStreamer web player and Android app can fetch segments from other viewers over WebRTC when P2P is enabled both for the installation and for that stream, and suitable peers are available. The players still fetch over HTTP when they cannot get a segment from a peer. Xtream apps, M3U players and MAG devices use standard delivery without this WebRTC option.
See peer-to-peer streaming for supported players, setup and how to measure bandwidth savings.

