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.
pear-player.min.js
can be imported by the html label <script>
, refer to code example,also /examples/test.html
can help you.
To know more information API document .
- 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)
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!
- 2017.09.01 (未来网络开放社区联盟) - 继云计算之后,雾计算再起 - 谈谈 P2P CDN
- 2017.08.18 (IT大咖说) - WebRTC会成主流吗?众包CDN时代到了!
- 2017.07.11 (OSChina开源中国) - PearPlayer.js —— 混合P2P-CDN的流媒体播放器
- 2017.06.24 (腾讯Web前端大会) - 基于WebRTC的P2P-CDN流媒体加速
- 2017.05.17 (南方科技大学) - Edge Computing and Shared Fog Streaming
- 2017.05.08 (台湾逢甲大学) - A Cooler Fruit Venture: Scaling up a Network from Cloud to Fog with Crowdsourcing
- 2016.08.17 (香港科技大学) - From Cloud to Fog: Scaling up a Network with Crowdsourcing
MIT. Copyright (c) Pear Limited and snowinszu.
E-mail: [email protected]; QQ group:373594967
; Business