
Those who stream premium live sports content at scale know that any content transport or delivery service needs to adhere to rigorous quality standards.
When considering alternatives for on-demand capacity, broadcasters may look to peer-assisted delivery with these standards. This needs to happen without risking a single viewer’s playback or quality of experience.
With Rilla, protecting playback while safely interleaving video happens one segment at a time, using our Peer SDK.
This video makes the unseen visible by showcasing, from the player’s and playback’s point of view, how the SDK ensures peer-assisted capacity is intelligently considered, even in the hardest playback conditions like watermarking, ABR and ad breaks.
For each request, the Peer SDK interleaves peer segments only when it is safe, which means a peer can deliver the segment before the playback deadline. Otherwise, the segment comes from your CDN. The Player View demo shows this from inside one viewer’s player: every peer connection, the source of each segment, and the CDN stepping in when a peer can’t deliver in time.
Each of the six sections below starts with what the demo records through simulated playback scenarios.

The first peer connection, at 2:06. The local peer network view on the left shows one peer. The segment delivery timeline on the right shows the first peer segment in blue. There are no rebuffers.
Every viewer starts on the CDN while the AI Orchestrator assigns it to a peer group. For each segment request, the Peer SDK then decides whether the segment comes from a peer or from the CDN.
The SDK adds peer delivery and connections slowly while it monitors playback. It relies on peers more as it learns which segments they hold and how much bandwidth they can offer. Configurable latency budgets hold the live edge: peer segments are only used when they arrive inside the playback deadline.

A peer group, at 3:35. Ten peer connections, seven incoming and three outgoing.
The AI Orchestrator groups viewers by segment compatibility. Viewers in a group match on rendition, watermark, buffer position and network distance.
Each viewer has several producers to request from. Peers ahead of it in the stream send it segments, and it passes the same segments on to peers behind it. As more peers join the group, the viewer needs less from the CDN.
Each peer sends only the requested segment. It sends the segment before a conservative deadline, well ahead of playback, so the buffer stays healthy.

One segment’s delivery, at 5:05. The viewer needs variant B. One of five peers holds it, and that peer delivers the whole segment.
Forensic watermarking gives each viewer their own pattern of A and B segment variants, and the variant can change from one segment to the next. For each request, Rilla chooses one peer that holds the matching variant. A peer cannot send the wrong variant, so the forensic watermark stays intact. When no peer in the group holds the matching variant, your CDN serves the segment.
Peers carry the same encrypted segments as your CDN. DRM, licensing and entitlement stay untouched. A segment from a peer is byte-for-byte identical to the one your CDN would have sent.

A CDN fallback, at 6:02. The peer leaves mid-segment after sending 88% of it. The CDN sends the other 12%, and the deadline is met.
Viewers can leave the stream or switch renditions, and network congestion can slow delivery. The Peer SDK keeps your CDN connected and available, so it can take over when peer delivery is at risk.
When a peer leaves while it is sending a segment, the SDK detects it and your CDN completes the segment before the playback deadline. For each segment, the SDK tries the assigned peer, then other peers, then your CDN. Each switch is timed against the player’s buffer.
When a peer can’t deliver in time, your CDN fills the gap and playback carries on.

After a downshift, at 7:05. The player is at 720p, with 720p peers delivering.
The viewer plays 1080p and keeps a warm connection to a 720p peer in case of a switch. When the player shifts down to 720p, that peer delivers at once, and the 1080p peers stop delivering but stay connected.
The AI Orchestrator then assigns more 720p peers, and the CDN covers any shortfall during the switch. When playback steps back up to 1080p, the 1080p connections are still open.

An ad break, at 7:46. Ad segments come from the CDN, and the peer connections stay listed.
When Rilla detects an ad break, delivery switches to the CDN for the break, so every viewer receives exactly the ad it is meant to receive. The peer connections stay open through the break, and peer delivery resumes when it ends.
Beyond what the demo records, Rilla Docs describes a cohort model for server-side ad insertion with personalised ads. In this model, ad segments come only from peers in the same advertising cohort. When no peer matches, the CDN serves the segment.
More video demos are available on Rilla Docs Videos.
Each feature has more detail on Rilla Docs:
Read more about our Peer SDK on Rilla Docs. Book a demo, and we can talk about how you can safely test, monitor and trial Rilla.
Rilla Team