Skip to main content


Since PeerPool requires only Javascript, the integration is seamless for the end-user and only requires a slight change in your site's HTML page.

Client-side integration depends on the player you are using and usually means adding one line of code to your page. Add the following scripts to the head of your player's page:

<script src=""></script>

Complete Example (Clappr)

<div id="video"></div>
<script src=""></script>
<script src=""></script>
if (p2pml.hlsjs.Engine.isSupported()) {
var engine = new p2pml.hlsjs.Engine();
var loader = engine.createLoaderClass();
} else {
var loader = XHRLoader;
var engine = new p2pml.hlsjs.Engine();
var player = new Clappr.Player({
parentId: "#video",
source: "",
playback: {
hlsjsConfig: {
liveSyncDurationCount: 7,
loader: loader
if (p2pml.hlsjs.Engine.isSupported()) p2pml.hlsjs.initClapprPlayer(player);;

More Examples Coming Soon