evisoft / hive.js

Hive.js is a browser-to-browser distributed cache for video

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hive.js

Hive.js is an extension to dash.js that enables distributed caching of video fragments using direct browser-to-browser communication over WebRTC. A public demo server is accessible at http://hive-js.cloudapp.net/.

Running a local demo

Start the server

  • Make sure you have python 2.7 available

  • Install pip, e.g. apt-get install python-pip

  • Setup virtualenv and create an environment for hive:

    • virtualenv ~/.virtualenvs/hive -p python2.7
    • source ~/.virtualenvs/hive/bin/activate
  • Install the service dependencies

    • pip install gunicorn
    • pip install Flask-Sockets
  • Start the server

    • cd service
    • gunicorn -w 1 -k flask_sockets.worker main:app

The demo page is now available at http://localhost:8000/demo/index.html.

About

Hive.js is a browser-to-browser distributed cache for video


Languages

Language:JavaScript 88.1%Language:Python 10.0%Language:CSS 1.9%