SwarmCloud P2P Streaming SDK
website·Indexed 32 days ago
https://docs.cdnbye.comA P2P streaming acceleration engine that reduces CDN bandwidth costs by turning user devices into distribution nodes. It provides SDKs for Web (Hls.js, Shaka Player, Dash.js), Android, iOS, React Native, and Flutter, along with a REST API for token management and real-time data analysis.
What's inside SwarmCloud
- The SwarmCloud HLS SDK enables P2P streaming by integrating two engines: one based on hls.js and another based on Service Workers. This dual approach ensures compatibility across all modern browsers (including iOS Safari) and supports web players regardless of whether they have built-in hls.js support.
Overview of @swarmcloud/dashjs P2P streaming features
@swarmcloud/dashjs provides lightweight, plugin-free peer-to-peer (P2P) communication using WebRTC data channels for MPEG-DASH live and VOD streaming. Key capabilities include:
- Seamless fallback to standard server delivery if WebRTC is unsupported.
- Compatibility with all CDNs, DRM, and video codecs without requiring server-side changes.
- Support for popular HTML5 players like video.js and DPlayer.
- Performance optimization via efficient scheduling policies and an IP database that groups peers by ISP and region.
Overview of SwarmCloud P2P+CDN Architecture
SwarmCloud implements a hybrid P2P+CDN model to reduce server bandwidth costs and eliminate buffering. It uses WebRTC Datachannel for cross-platform connectivity. The system works by embedding a proxy layer between the player and the network; the proxy intelligently switches between P2P and CDN. Initial playback always starts via the CDN edge node to ensure immediate start, then transitions to P2P once a sufficient buffer is established. If P2P peers disconnect or network jitter occurs, the system seamlessly switches back to the CDN.Overview of SwarmCloud Shaka P2P features
SwarmCloud Shaka provides lightweight, plugin-free peer-to-peer (P2P) communication using WebRTC data channels to optimize video delivery. Key capabilities include:
- Support for live and VOD streaming via HLS (m3u8) and MPEG-DASH protocols.
- Support for encrypted streams.
- Compatibility with all CDNs, DRM, and video codecs without requiring server-side changes.
- Integration with popular HTML5 players like Video.js and Clappr.
- Automatic fallback to standard server delivery if WebRTC is unsupported.
- Performance optimization via efficient scheduling policies and ISP/region-based peer grouping using an IP database.
Overview of SwarmCloudKit P2P Acceleration Engine
SwarmCloudKit is a P2P acceleration engine for video and live streaming designed for iOS, tvOS, and macOS. It supports HLS streaming (m3u8) for both live and VOD scenarios, including encrypted HLS and anti-leeching technologies. Key capabilities include:
- Interoperability with SwarmCloud Web P2P plugins and Android SDKs.
- Support for any video player on iOS, tvOS, and macOS.
- TS file caching to prevent redundant downloads.
- Intelligent Tracker server scheduling based on ISP, region, and NAT type.
- Flexible configuration parameters to adapt to specific environments.
Overview of CDNBye Shaka Player P2P Engine
The CDNBye Shaka Player integration is an open-source web player based on Google's Shaka Player. It implements a P2P mechanism using a BitTorrent-like algorithm where performance improves as the number of concurrent viewers increases. It supports HLS (m3u8) and MPEG-DASH for both live and VOD scenarios, including support for DRM (Digital Rights Management) and encrypted transmission. If WebRTC is unsupported by the browser, it seamlessly falls back to standard HTTP download mode.Overview of CDNBye Android P2P Acceleration SDK
The CDNBye Android SDK provides data-saving P2P acceleration for live and on-demand streaming based on HLS (m3u8) and MPEG-DASH (mpd) protocols. It is compatible with Android smartphones, smart TVs, and set-top boxes. Key capabilities include:
- Interoperability with CDNBye Web and iOS SDKs.
- Support for encrypted HLS/MPEG-DASH transmission and anti-leeching technology.
- Compatibility with any Android media player.
- P2P acceleration implemented via pre-loading to ensure no impact on user playback experience.
- Intelligent scheduling via Tracker servers based on ISP, geography, and NAT type to optimize playback and sharing rates.
Overview of SwarmCloud Peer-assisted Video Delivery
SwarmCloud is a P2P-CDN overlay that uses WebRTC to enable peer-to-peer segment exchanges between viewers, reducing the load on centralized infrastructure and traditional CDNs. It is compatible with existing encoding, CDN, load-balancing, analytics, DRM, and advertising solutions. The system requires no server-side changes for implementation and uses industry-standard network security protocols for all communication channels.Overview of SwarmCloud Peer-Assisted Video Delivery
SwarmCloud provides APIs and SDKs to integrate peer-assisted video delivery (P2P) into applications. It consists of two primary components: Frontend SDKs, which allow applications to join the streaming mesh, and a Developer Portal (Dashboard) for data analytics, API key management, and billing.Overview of SwarmCloud HLS SDK
The SwarmCloud HLS SDK integrates two P2P streaming engines: one based on hls.js and another based on Service Worker. It is designed to support all modern browsers (including iOS Safari) and all web players, including those without built-in hls.js support.Overview of @swarmcloud/dashjs P2P acceleration
@swarmcloud/dashjs is a bandwidth-saving and acceleration engine for video websites based on MSE (Media Source Extensions) and WebRTC technologies. It is compatible with any player that uses Dash.js as its decoding engine. It uses a BitTorrent-like algorithm where performance improves as the number of concurrent viewers increases. Key features include:
- Support for both Live and VOD scenarios using the MPEG-DASH protocol.
- Seamless integration without modifying the original dash.js source code.
- Automatic fallback to standard HTTP download mode if the browser does not support WebRTC.
- Compatibility with third-party players such as video.js and DPlayer.
- Intelligent Tracker server scheduling based on user IP, ISP, and geographic region.
Overview of TIP P2P Acceleration Engine for Apple Platforms
TIP is a P2P acceleration engine designed for video and live streaming, compatible with iOS, tvOS, and macOS. It supports HLS streaming (m3u8) for both live and VOD scenarios, including encrypted HLS and anti-leech technology. The engine is cross-platform compatible with SwarmCloud Web and Android SDKs, allowing peer-to-peer connectivity across different devices. Key capabilities include .ts file caching to prevent redundant downloads and intelligent Tracker server scheduling based on ISP, region, and NAT type.