# PearPlayer.js **Repository Path**: rxtech/PearPlayer.js ## Basic Information - **Project Name**: PearPlayer.js - **Description**: PearPlayer.js 一个支持多协议,多源、混合P2P-CDN的流媒体播放器 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 168 - **Created**: 2018-02-08 - **Last Updated**: 2024-12-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

 
PearPlayer.js

The streaming media player for multi-protocol, multi-source and mixed P2P-CDN

npm jsdelivr License


**[English](https://github.com/PearInc/PearPlayer.js/blob/master/README_EN.md)** PearPlayer(梨享播放器)**[[Demo](https://demo.webrtc.win/)]** is a streaming media player framework written completely with HTML5 and JavaScript. The player uses HTTP (including HTTPS, HTTP2) and WebRTC(data channels) for code work. The WebRTC is multi-protocol, multi-source,having low latency and high bandwidth utilization. Why can PearPlayer guarantee the maximum P2P rate and user's fluent video experience? There are two reasons. One is MSE (Media Source Extension) technology, another is our designed algorithm. We know MSE technology based on H5 technology can collect the Buffer block from multiple source nodes to the player. Besides, the designed algorithm is to achieve the best scheduling strategy and handle of various abnormal situations. ![PearPlayer](fig/PearPlayer.png)

![multisources](fig/fogvdn_multisources.png) Now, through the html label` ``` ## ## Using Method ### Simply include the video label on the js packet And then use the script label to import pear-player.min.js: ```html ``` or use CDN: ```html ``` Suppose we want to use video label to paly the fllowing video, see HTML below: ```html