P2P Media Loader is an open-source JavaScript library that uses features of modern web browsers (i.e. HTML5 video and WebRTC) to deliver media over P2P and do playback via integrations with many popular HTML5 video players. It doesn’t require any web browser plugins or add-ons to function.

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.

It 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.

Key features

Supports multiple HTML5 video players and engines:
Engines: Hls.js, Shaka Player
Players: Vidstack, Clappr, MediaElement, Plyr, DPlayer, OpenPlayer and others that support Hls.js or Shaka video engines. These players can be integrated via custom integration with the library API.

Effective
P2P Media Loader allows to save up to 80% of CDN traffic.

Versatile
Supports live and VOD streams over HLS or MPEG-DASH protocols.

Adaptive Bitrate
Supports adaptive bitrate streaming of HLS and MPEG-DASH protocols.

Free and open-source
All components of P2P network are available as open-source products:

No need in server-side software
By default P2P Media Loader uses publicly available servers:

Privacy
For privacy reasons it is possible to run private instances of STUN server and WebTorrent tracker. In this case information about the P2P network and its peers will not be available to third parties.