1 Star 0 Fork 172

在路上FX / PearPlayer.js

forked from Pear / PearPlayer.js 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
README_EN.md 4.02 KB
一键复制 编辑 原始数据 按行查看 历史
谢庭 提交于 2017-11-30 10:58 . update

 
PearPlayer.js

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 ability based on WebRTC, no plug-in
  • Multi-protocol(HTTP, HTTPS, WebRTC), multi-source
  • No parameter
  • Save CP's data usage
  • Run well in Chrome,Firefox, Opera
  • Support Pear FogVDN
  • Encode by TLS/DTLS, no DPI feature; Pear Fog dynamic port mapping ensures no statistical feature
  • Use easily like <video> label, can integrate video.js
  • Realize browser P2P ability(base on webtorrent)
Demo:https://demo.webrtc.win/pearplayer/

multisources

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: service@pear.hk; QQ group:373594967; Business

JavaScript
1
https://gitee.com/mxf_xixi/PearPlayer.js.git
git@gitee.com:mxf_xixi/PearPlayer.js.git
mxf_xixi
PearPlayer.js
PearPlayer.js
master

搜索帮助