Skip to content

Latest commit

 

History

History
107 lines (85 loc) · 4.02 KB

README_EN.md

File metadata and controls

107 lines (85 loc) · 4.02 KB

A multi-protocol, multi-source and P2P-CDN supporting streaming media player


Online Demo

PearPlayer is an open source HTML5 streaming media framework written by JavaScript, combine HTTP (including HTTPS, HTTP2) and WebRTC. It would be multi-protocol, multi-source, low latency, high bandwidth utilization, used to end streaming media acceleration. MSE (Media Source Extension) based on H5 technology collects the Buffer block from multiple source nodes to the player. With a well designed algorithm, PearPlayer can guarantee the maximum rate of P2P as well as great watching experience.

multisources

multisources

pear-player.min.js can be imported by the html label <script>, refer to code example,also /examples/test.htmlcan help you.

To know more information API document .

Feature

  • P2P based on WebRTC,no plug in
  • Speed up,reliable
  • Multi-protocol(HTTP,HTTPS,WebRTC), multi-source
  • No parameter
  • Save the data usage
  • Run well in Chrome,Firefox,Opera,Safari11
  • Support Pear FogVDN
  • Encode by TLS/DTLS, no DPI feature,Pear Fog dynamic port mapping
  • Use easily like <video> label, can integrate video.js
  • Realize browser P2P ability(base on webtorrent)


![multisources](fig/bitmap_en.png)

Quick Start

Import the js packet

use script label to import pear-player.min.js

<script src="./dist/pear-player.min.js"></script>

or

<script src="https://cdn.jsdelivr.net/npm/pearplayer@latest/dist/pear-player.min.js"></script>

suppose we want to use video label to paly(/tv/pear001.mp4)

<video id="pearvideo" src="https://qq.webrtc.win/tv/Pear-Demo-Yosemite_National_Park.mp4" controls>

Final

<script>
/**
 * first parameter is the video label's id or class
 * opts is optional parameter
 */
var player = new PearPlayer('#pearvideo', opts);
</script>

Congratulations! You can use the PearPlayer now!

Compatibility

videojs.html

Who is using Pear Player today?

Pear Player document

Thanks

Talks

License

MIT. Copyright (c) Pear Limited and snowinszu.

Service

E-mail: [email protected]; QQ group:373594967; Business