You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**P2P Media Loader** is an open-source JavaScript library that leverages modern web browser features, such as HTML5 video and WebRTC, to enable media delivery over peer-to-peer (P2P) connections. It integrates smoothly with many popular HTML5 video players and works entirely without browser plugins or add-ons. Experience it in action with the [demo](http://novage.com.ua/p2p-media-loader/demo.html).
7
+
**P2P Media Loader** is an open-source JavaScript library that uses modern browser technologies — like HTML5 video and WebRTC — to enable peer-to-peer (P2P) media delivery. It integrates seamlessly with popular HTML5 video players and requires no additional browser plugins or add-ons. Try the [demo](http://novage.com.ua/p2p-media-loader/demo.html) to see it in action.
8
8
9
-
By leveraging P2P technology, it greatly reduces reliance on traditional content delivery network (CDN) resources, lowers costs, and enhances the ability to deliver media streams to a larger audience.
9
+
This library makes it possible to build large-scale P2P mesh networks — often called peer-to-peer content delivery networks (P2P CDN), Hybrid CDN, Multi CDN, peer-to-peer television (P2PTV), or Enterprise Content Delivery Networks (eCDN) — enabling users who are watching the same live or on-demand (VOD) streams via HLS or MPEG-DASH to share traffic in real time.
10
10
11
-
This library enables the creation of a huge P2P mesh networks, also known as peer-to-peer content delivery network (P2P CDN), peer-to-peer television (P2PTV), and Enterprise Content Delivery Network (eCDN), which allows traffic sharing among users who are simultaneously viewing the same live or video on demand (VOD) stream via HLS or MPEG-DASH protocols.
11
+
## Why Use Hybrid CDN + P2P Delivery?
12
12
13
-
## Related software
13
+
-**Works Everywhere:**
14
+
P2P Media Loader **supports all modern desktop and mobile browsers** — Chrome, Safari, Edge, Firefox, and Opera — across Windows, macOS, Android, iOS, iPadOS, and Linux. Check out our [guide](https://novage.com.ua/blog/setting-up-p2p-video-on-a-web-page-in-5-minutes-for-free) to set up P2P video in five minutes. You can also [embed](https://novage.com.ua/blog/integrate-p2p-video-streaming-into-mobile-application) it into **native iOS and Android** apps and use it with **native players**.
15
+
16
+
-**No Setup Cost and No Server Software Needed:**
17
+
For smaller setups (1,000–2,000 simultaneous viewers), public trackers alone can handle peer connections. This means you **don’t need to install or maintain any additional server-side components** in many cases. **Free** alternatives are available for larger setups too. Check our article on [running dedicated trackers](https://novage.com.ua/blog/p2p-video-delivery-for-up-to-100k-viewers-for-free).
18
+
19
+
-**Reduced Load on Origin:**
20
+
Offloading requests from the CDN or media server to peers eases the strain on centralized infrastructure, increasing system reliability.
21
+
22
+
-**Significant Cost Savings:**
23
+
With less bandwidth required from your primary video source, you can dramatically cut CDN or hosting expenses.
24
+
25
+
-**Enhanced Total Bandwidth:**
26
+
When viewers share video data among themselves, they collectively expand overall network capacity, leading to smoother streaming for everyone.
27
+
28
+
-**Flexible for Live & VOD:**
29
+
Whether you’re streaming live events or on-demand videos, P2P Media Loader supports both scenarios without added complexity.
In enterprise environments, you have full control over the internal network. This means peers can easily interconnect with minimal constraints, ensuring reliable, high-quality internal media delivery (e.g., multiple screens, desktops, and mobile devices across an organization) without straining external bandwidth or internal infrastructure.
33
+
34
+
## Related Software
14
35
15
36
-[wt-tracker](https://github.com/Novage/wt-tracker): a high-performance WebTorrent tracker for Node.js using [µWebSockets.js](https://github.com/uNetworking/uWebSockets.js).
16
-
-[Aquatic](https://github.com/greatest-ape/aquatic): a high-performance BitTorrent tracker written in Rust.
17
-
-[OpenWebtorrent Tracker](https://github.com/OpenWebTorrent/openwebtorrent-tracker): fast and simple webtorrent tracker written in C++ using [µWebSockets](https://github.com/uNetworking/uWebSockets).
18
-
-[bittorrent-tracker](https://github.com/webtorrent/bittorrent-tracker): a simple, robust, BitTorrent tracker (client & server) implementation for Node.js and Web.
37
+
-[Aquatic](https://github.com/greatest-ape/aquatic): a high-performance WebTorrent and BitTorrent tracker written in Rust.
38
+
-[bittorrent-tracker](https://github.com/webtorrent/bittorrent-tracker): official WebTorrent tracker implementation for Node.js.
39
+
40
+
## Documentation and Important Links
19
41
20
-
## Documentation and important links
42
+
- Guides [for HTML pages and web apps](https://novage.com.ua/blog/setting-up-p2p-video-on-a-web-page-in-5-minutes-for-free) and [for native mobile apps](https://novage.com.ua/blog/integrate-p2p-video-streaming-into-mobile-application)
- STUN servers - [Public STUN server list](https://gist.github.com/mondain/b0ec1cf5f60ae726202e)
48
79
49
-
## Key components of the P2P network
80
+
## Key Components of the P2P Network
50
81
51
82
All the components of the P2P network are free and open-source.
52
83
53
84

54
85
55
-
**P2P Media Loader**web browser [requirements](#web-browsers-support) are:<br>
86
+
**P2P Media Loader**required browser features are:<br>
56
87
57
-
-**WebRTC Data Channels** support to exchange data between peers
58
-
-**Media Source Extensions** are required by Hls.js and Shaka Player engines for media playback
88
+
-[WebRTC Data Channels](https://caniuse.com/mdn-api_rtcdatachannel) to exchange data between peers
89
+
-[Media Source Extensions](https://caniuse.com/mediasource) or [Managed Media Source](https://caniuse.com/mdn-api_managedmediasource) are required by Hls.js and Shaka Player engines for media playback
59
90
60
91
[**STUN**](https://en.wikipedia.org/wiki/STUN) server is used by [WebRTC](https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API) to gather [ICE](https://en.wikipedia.org/wiki/Interactive_Connectivity_Establishment) candidates.
61
92
There are many running public servers available on [Public STUN server list](https://gist.github.com/mondain/b0ec1cf5f60ae726202e).
@@ -78,19 +109,3 @@ Subsequently, **P2P Media Loader** transmits media stream details and connection
78
109
**P2P Media Loader** then connects with these peers to download additional media segments and simultaneously shares segments that it has already downloaded.
79
110
80
111
Periodically, random peers in the P2P swarm download new segments over HTTP(S) and distribute them to others via P2P.
81
-
82
-
## Web browsers support
83
-
84
-
### P2P Media Loader required browser features
85
-
86
-
-[WebRTC Data Channels](https://caniuse.com/mdn-api_rtcdatachannel)
87
-
-[Media Source Extensions](https://caniuse.com/mediasource) or [Managed Media Source](https://caniuse.com/mdn-api_managedmediasource)
88
-
89
-
### The features are fully supported across the most popular browsers
0 commit comments