All Projects → cdnbye → P2P-DPlayer

cdnbye / P2P-DPlayer

Licence: MIT License
DPLayer powered by CDNBye P2P Engine

Programming Languages

javascript
184084 projects - #8 most used programming language
SCSS
7915 projects
HTML
75241 projects

Projects that are alternatives of or similar to P2P-DPlayer

P2P-CKPlayer
嵌入P2P引擎的CKPlayer,视频网站省流量&加速神器
Stars: ✭ 49 (-22.22%)
Mutual labels:  player, hls, webrtc, p2p, hlsjs, cdnbye
Ios P2p Engine
Let your viewers become your unlimitedly scalable CDN.
Stars: ✭ 31 (-50.79%)
Mutual labels:  player, hls, webrtc, p2p, live
Hlsjs P2p Engine
Let your viewers become your unlimitedly scalable CDN.
Stars: ✭ 759 (+1104.76%)
Mutual labels:  player, hls, webrtc, p2p, live
Android P2p Engine
Let your viewers become your unlimitedly scalable CDN.
Stars: ✭ 70 (+11.11%)
Mutual labels:  player, hls, webrtc, p2p, live
P2p Media Loader
An open-source engine for P2P streaming of live and on demand video directly in a web browser HTML page
Stars: ✭ 822 (+1204.76%)
Mutual labels:  player, hls, webrtc, p2p
CBPlayer
一个内置P2P的神奇播放器
Stars: ✭ 60 (-4.76%)
Mutual labels:  player, hls, dplayer, cdnbye
p2p-cdn-sdk-android
Free p2p cdn android github sdk to reduce video streaming costs of live and on demand video using webrtc by upto 90% and improve scalability by 6x - 🚀 Vadootv 🚀
Stars: ✭ 39 (-38.1%)
Mutual labels:  player, hls, p2p, vod
P2p Cdn Sdk Javascript
Free p2p cdn github javascript sdk to reduce video streaming costs of live and on demand video using webrtc by upto 90% and improve scalability by 6x - 🚀 Vadootv 🚀
Stars: ✭ 158 (+150.79%)
Mutual labels:  player, hls, webrtc, p2p
Shaka Player
JavaScript player library / DASH & HLS client / MSE-EME player
Stars: ✭ 5,386 (+8449.21%)
Mutual labels:  hls, vod, live
bigscreen-player
Simplified media playback for bigscreen devices
Stars: ✭ 62 (-1.59%)
Mutual labels:  player, vod, live
Diffy
🎞️💓🍿 Love streaming - It's always best to watch a movie together ! 🤗
Stars: ✭ 37 (-41.27%)
Mutual labels:  webrtc, p2p, live
Srs
SRS is a simple, high efficiency and realtime video server, supports RTMP, WebRTC, HLS, HTTP-FLV, SRT and GB28181.
Stars: ✭ 16,734 (+26461.9%)
Mutual labels:  hls, webrtc, live
flutter-p2p-engine
Let your viewers become your unlimitedly scalable CDN.
Stars: ✭ 93 (+47.62%)
Mutual labels:  vod, live, cdnbye
Pearplayer.js
支持WebRTC的多源多协议混合P2P-CDN的流媒体播放器
Stars: ✭ 512 (+712.7%)
Mutual labels:  webrtc, p2p, live
Hls.js
HLS.js is a JavaScript library that plays HLS in browsers with support for MSE.
Stars: ✭ 10,791 (+17028.57%)
Mutual labels:  player, hls, hlsjs
Html5 Dash Hls Rtmp
🌻 HTML5播放器、M3U8直播/点播、RTMP直播、低延迟、推流/播流地址鉴权
Stars: ✭ 1,805 (+2765.08%)
Mutual labels:  player, hls, webrtc
U2web
stream video with p2p
Stars: ✭ 97 (+53.97%)
Mutual labels:  player, webrtc, p2p
Dplayer
🍭 Wow, such a lovely HTML5 danmaku video player
Stars: ✭ 12,101 (+19107.94%)
Mutual labels:  player, hls, dplayer
mock-hls-server
Fake a live/event HLS stream from a VOD one. Useful for testing. Supports looping.
Stars: ✭ 61 (-3.17%)
Mutual labels:  hls, vod, live
nsplayer
A web player with shakaplayer & hls.js both supported
Stars: ✭ 23 (-63.49%)
Mutual labels:  player, hls

ADPlayer CDNBye

P2P-DPlayer

警告:本项目已无人维护,请使用官方播放器CBPlayer

Notice:This project is deprecated now, please consider use CBPlayer

npm npm npm size Travis devDependency Status

DPlayer with CDNBye P2P Engine

image

Since had CDNBye hlsjs-p2p-engine, DPlayer is henceforth more lovely!
内置了hlsjs-p2p-engineDPlayer播放器,播放hls流支持P2P加速,API与DPlayer保持一致,使用方法参考quick-start.html

Quick Start

<meta charset="UTF-8">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/p2p-dplayer@latest/dist/DPlayer.min.css">
<style type="text/css">
    body,html{width:100%;height:100%;background:#000;padding:0;margin:0;overflow-x:hidden;overflow-y:hidden}
    *{margin:0;border:0;padding:0;text-decoration:none}
    #stats{position:fixed;top:5px;left:10px;font-size:12px;color:#fdfdfd;z-index:2147483647;text-shadow:1px 1px 1px #000, 1px 1px 1px #000}
    #dplayer{position:inherit}
</style>
<div id="dplayer"></div>
<div id="stats"></div>
<script src="https://cdn.jsdelivr.net/npm/cdnbye@latest"></script>
<script src="https://cdn.jsdelivr.net/npm/p2p-dplayer@latest"></script>
<script>
    var dp = new DPlayer({
        container: document.getElementById('dplayer'),
        autoplay: true,
        video: {
            url: 'https://video-dev.github.io/streams/x36xhzz/url_2/193039199_mp4_h264_aac_ld_7.m3u8',
            type: 'hls'
        },
        hlsjsConfig: {
//            debug: false,
            // Other hlsjsConfig options provided by hls.js
            p2pConfig: {
                logLevel: true,
                live: false,
                // Other p2pConfig options provided by CDNBye
                // https://docs.cdnbye.com/#/API
            }
        }
    });
    var _peerId = '', _peerNum = 0, _totalP2PDownloaded = 0, _totalP2PUploaded = 0;
    dp.on('stats', function (stats) {
        _totalP2PDownloaded = stats.totalP2PDownloaded;
        _totalP2PUploaded = stats.totalP2PUploaded;
        updateStats();
    });
    dp.on('peerId', function (peerId) {
        _peerId = peerId;
    });
    dp.on('peers', function (peers) {
        _peerNum = peers.length;
        updateStats();
    });

    function updateStats() {
        var text = 'CDNBye P2P正在为您加速' + (_totalP2PDownloaded/1024).toFixed(2)
            + 'MB 已分享' + (_totalP2PUploaded/1024).toFixed(2) + 'MB' + ' 连接节点' + _peerNum + '个';
        document.getElementById('stats').innerText = text
    }
</script>

Introduction

DPlayer is a lovely HTML5 danmaku video player to help people build video and danmaku easily.

DPlayer supports:

  • Streaming formats
  • Media formats
    • MP4 H.264
    • WebM
    • Ogg Theora Vorbis
  • Features
    • Danmaku
    • Screenshot
    • Hotkeys
    • Quality switching
    • Thumbnails
    • Subtitle

Using DPlayer on your project? Let me know!

Docs

中文文档

Thanks

Sponsors

Contributors

Join the Discussion

Related Projects

Feel free to submit yours in Let me know!

Tooling

Danmaku api

Plugins

Other

Who use DPlayer?

Donate

DPlayer is an MIT licensed open source project and completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing.

One-time Donations

We accept donations through these channels:

Recurring Pledges

Recurring pledges come with exclusive perks, e.g. enabling faster GitHub response, having your name or your company logo listed in the DPlayer GitHub repository and this website.

  • Become a backer or sponsor via Patreon
  • E-mail us: i#html.love

Author

DPlayer © DIYgod, Released under the MIT License.
Authored and maintained by DIYgod with help from contributors (list).

Blog · GitHub @DIYgod · Twitter @DIYgod · Telegram Channel @awesomeDIYgod

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].