Your player keeps working
HLS / DASH, ABR, DRM, decoding, and rendering stay in your existing playback stack.
MeshStream adds peer-assisted video delivery so viewers of the same content can share downloaded media segments and reduce repeated CDN downloads. Keep your existing player and CDN, with automatic CDN fallback whenever sharing is unavailable.
Measure peer-delivered and CDN-delivered bytes separately, then calculate the offload achieved by your actual audience, content, and network conditions.
Measure CDN offload and cost →Use your traffic, measured offload rate, and CDN unit price to model a 30-day period.
The SDK handles sessions, segment requests, peer selection, caching, and fallback. Your player continues to own HLS, DASH, ABR, DRM, decoding, and rendering.
import { attach } from "@meshstream/p2p-web";
const session = attach({
key: "your_sdk_key",
url: "https://cdn.example.com/video.m3u8",
video: document.querySelector("video")!,
});
await session.start();
// End of playback
session.dispose();View the Web guide →HLS / DASH, ABR, DRM, decoding, and rendering stay in your existing playback stack.
The SDK chooses segment sources, peers, cache behavior, and fallback inside the playback session.
Control enablement by key, platform, region, and version, then narrow the rollout quickly when needed.
Each platform keeps its own player and lifecycle, while application, key, region, and analytics conventions stay aligned.
P2P is an enhancement path with clear boundaries. When it is unavailable, MeshStream converges back to CDN delivery.
No peer, timeout, authorization issue, or service interruption should stop the player from using your CDN path.
Origin headers stay on your controlled origin path and are never forwarded to other devices.
Disable P2P locally, by policy, or at runtime for staged rollouts, drills, and fast mitigation.
Validate normal playback first, then disable P2P and confirm the player completes through CDN delivery.
Use delivery evidence to investigate failures, measure impact, and decide what to change next.
Measure peer and CDN bytes for your actual audience. Evaluate offload alongside playback quality and your billing terms.
Read the cost measurement guide →Use distributed sharing to absorb bursts during events, launches, and live programming while keeping CDN fallback.
Explore live P2P CDN →Cover four SDKs from one application perspective and compare versions, regions, usage, and failures.
Browse analytics →Integrate the Web SDK, then inspect the first session in the console.
Telegram for quick answers, email for integration, quota, and billing.