/sdk/spdn-p2p.js — paste an app token, paste a stream URL, hit Start.
Use this page to validate your SDK integration before wiring it into your real player.
<script src="https://cdn.jsdelivr.net/npm/hls.js@1.5.13/dist/hls.min.js"></script>
<script src="https://spdn.tv/sdk/spdn-p2p.js"></script>
<video id="player" controls></video>
<script>
const spdn = new SPDN({
token: "spdn_app_YOUR_TOKEN_HERE",
streamId: "your-stream-id"
});
spdn.ready.then(() => {
const hls = new Hls();
hls.attachMedia(document.getElementById("player"));
spdn.attachToHls(hls);
hls.loadSource("https://your-cdn.com/live.m3u8");
});
</script>