GithubHelp home page GithubHelp logo

ehuergo / pcdn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iragne/pcdn

0.0 1.0 0.0 217 KB

PCDN is an Peer to peer CDN for video, it's Hybrid CDN/P2P Architecture. HTTP Live Streaming, WebRTC, videojs and peerjs, HLS and Video for broadcasts

Home Page: http://pcdn.jairagne.ovh

License: Apache License 2.0

HTML 0.94% JavaScript 88.78% CSS 10.28%

pcdn's Introduction

PCDN

PCDN is an Peer to peer/P2P CDN for video based on an hybride solution

It's work with Peerjs , Videojs and WebRTC.

It's a prof of concept so don't focus on the code quality.

I hope you found it interresting and feel free to contact me

An example here http://pcdn.jairagne.ovh

Riquirement

  • Videojs video player
  • Compatible Browsers
  • HLS video

Client

Copy past on your video page this code

<script src="/js/apiCDNP2P.js"></script>
<script>
    apiCDNP2P({host:"peerjs.jairagne.ovh",port:"9000",key: 'peerjs',debug:3});
</script>

Configuration:

  • host: host of the server
  • port: port of the peerjs server
  • key: api key of my peerjs server
  • debug: Level of debug 0-3 see peerjs configuration
  • more: Peerjs API configuration

Server

PCDN server

My PCDN server is free to use. feel free to make your test on it. For production mode, my advice is to do it by yourself. Or use existing solution like Streemroot or Peer5 .... good article here

host: pcdn.jairagne.ovh port:9000 key:peerjs

Your own PCDN server

$ cd server/peerjs-server
$ npm install
$ cd bin
$ node peerjs --help

Contact

Twitter : @adelskott

TODO

  • Landing page for inactive users
  • Expose client API
  • Refactor code
  • Limit the client share to 5
  • Replace Peejs to use a proper server with faye
  • Use a redis or Elasticsearch instead of memory storage
  • Create a server dashboard for stats
  • Automatic reconnection server
  • Too many failure bybass P2P

pcdn's People

Contributors

iragne avatar

Watchers

Eugenio Huergo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.