Skip to main content

Overview

Delivering video, audio, and other data on centralized networks is expensive and inefficient. Instead of building wasteful new data centers or buying expensive CDNs, it's more responsible to use what we already have. Almost everybody has spare bandwidth. SwarmCloud creates value by unlocking this under-utilized resource.


SwarmCloud’s P2P solution uses WebRTC to create a network between end-user devices accessing the same video. When a viewer requests video content, the system first checks to see if it is available from peers on the network. If so, it pulls the video from the peer instead of retrieving it from the video source. If it doesn’t, it retrieves it directly from the video source.
p2p
We are proud to support the largest number of devices in the market today. Our SDK has been continuously perfected by the best engineers.

How does it work?

The traditional streaming media mode is that the player requests data from the CDN (source server) for progressive playback. SwarmCloud integrates the SDK on the client side, embeds a layer of proxy between the player and the network. WebRTC is used to create a peer-to-peer mesh network that helps users load video content from each other. Our hybrid switching algorithm determines whether a viewer should load the next segment from SwarmCloud’s p2p network or the publisher’s CDN. This allows SwarmCloud to shrink a content provider’s bandwidth usage, while also maximizing a user’s viewing experience.



p2p

Made for Developer

It only takes a few lines of code to enable p2p streaming.

import Hls from 'swarmcloud-hls/dist/hls.min';

if(Hls.isSupported()) {
var hls = new Hls();
hls.loadSource('https://your_stream.m3u8');
hls.attachMedia(video);
} else {
// use ServiceWorker based p2p engine if hls.js is not supported
new Hls.P2pEngine();
}

Boost User Experience

Being able to deliver high quality and stable video stream to the users is a must to maintain high service quality and drive user satisfaction. By utilizing SwarmCloud P2P MESH streaming solution, it does not rely on a single link from a client to your streaming server and therefore less prone to network disruption, which will lead to better user experience.

cdn-vs-p2p

Save on CDN Expenses

SwarmCloud uses MESH networking to deliver most of the video. Your CDN is only used when p2p network unavailable and to allow faster startup. You can save valuable money and resources.



p2p

Easy to Integrate

SwarmCloud allows simple integration with a few lines of code. Switching to P2P-CDN streaming has never been easier. Your integration will be done in mere minutes. Compatible with all CDNs, agnostic to DRM and video codecs. No service side changes required.

ISP Friendly

Peer-to-peer functionality has long been deemed non beneficial for Internet Service Providers as it puts strain on their network infrastructure. SwarmCloud actually reverses that by only interconnecting peers grouped up by ISP and regions, which allows ISPs that have OTT services to benefit from peer-to-peer in way never before possible.

Security and Privacy

  • Between peers - peers are connected to each other via WebRTC data channel, which is a secure tunnel that uses the SCTP protocol over DTLS encryption.
  • Between each viewer and the SwarmCloud backend - each viewer is connected to the SwarmCloud backend via a secure Websocket connection that uses TLS encryption.
  • P2P activity only starts to work AFTER the user is authorized by the server. The HTTP server sees the same exact requests (tokens, keys, cookies, etc.) before and after SwarmCloud is enabled.
  • To store the downloaded video chunks, the SDK uses areas of the viewer’s device memory that are inaccessible to any other application. In particular, these areas are inaccessible for viewing with in-browser developer tools. No video segments are ever saved to HDD. This protects video chunks from being copied and saved to the viewer’s device.
  • Compared to similar products, SwarmCloud offers GDPR-compliant technology. In addition to the legal safety of delivery, the SwarmCloud protocol is technically safe and resilient to the DDoS and fraud injections into the protocol.

Get Started for Free

50GB of free traffic is provided per day to help you start at zero cost.