同步操作将从 Pear/PearPlayer.js 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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.
<video>
label, can integrate video.js
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!
MIT. Copyright (c) Pear Limited and snowinszu.
E-mail: service@pear.hk; QQ group:373594967
; Business
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。