# PearPlayer.js
**Repository Path**: start0715/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**: 171
- **Created**: 2022-03-15
- **Last Updated**: 2024-12-29
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
A multi-protocol, multi-source and hybrid P2P-CDN streaming media player
.
**[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. Combining HTTP (including HTTPS, HTTP2) and WebRTC, PearPlayer accelerates media streaming on the Web. It supports multiple protocols, multiple sources, and achieves low latency and high bandwidth utilization. With the help of H5 MSE (Media Source Extension) technology, it receives buffers from multiple source nodes and delivers to the player. Finely designed algorithms are adopted to achieve the best scheduling effect and to handle abnormal situations. Thus, PearPlayer can provide end-users with wonderful video watching experience while maximizing the P2P ratio at the same time.


Simply import `pear-player.min.js` to HTML via the `
```
## Usages
### Import js file and bind to video tag
First import the
```
or use CDN:
```html
```
If use video tag to play the following video, HTML is like below:
```html