Node.JS Server and JavaScript/HTML Client for synchronizing online media
Go to file
calzoneman 27cfbcb61a Fix #121 2013-05-13 15:06:09 -04:00
www Fix #121 2013-05-13 15:06:09 -04:00
LICENSE Change license to MIT 2013-03-23 21:28:20 -05:00
README.md Update README.md 2013-05-12 17:33:23 -03:00
api.js Show page title in channel list 2013-05-12 11:46:19 -04:00
auth.js Fixes 2013-05-12 21:37:03 -04:00
channel.js Implement user profiles 2013-05-12 20:41:02 -04:00
chatcommand.js Fix /afk breaking chat 2013-05-12 23:35:25 -04:00
config.js Limit guest login rate 2013-05-02 22:13:46 -05:00
database.js Implement user profiles 2013-05-12 20:41:02 -04:00
filter.js Begin improving filters 2013-04-29 12:29:31 -05:00
get-info.js Improve/fix youtube search results 2013-05-05 18:52:16 -05:00
logger.js Add date to logs (#85) 2013-05-04 11:43:38 -05:00
media.js Quickfix for race condition on player load 2013-05-04 18:20:46 -05:00
package.json Fixes 2013-05-12 21:37:03 -04:00
poll.js Finish refactoring 2013-04-03 12:47:41 -05:00
rank.js Add temporary videos 2013-05-04 17:54:28 -05:00
run.sh Fix bad MySQL results crashing it 2013-03-18 12:17:56 -05:00
server.js Fixes 2013-05-12 21:37:03 -04:00
user.js Implement user profiles 2013-05-12 20:41:02 -04:00
version.py Add version update script 2013-04-23 16:16:43 -05:00

README.md

calzoneman/sync

About

CyTube (formerly Sync) is a server/client combination providing media synchronization, chat, and administration for an arbitrary number of channels. I began developing this as a hobby project, and when Synchtube announced their closure, I began polishing it and readying it for the public.

I am hosting a CyTube server at http://cytu.be

The serverside is written in JavaScript and runs on Node.JS. It makes use of a MySQL database to store user registrations, cached media metadata, and data about each channel.

The clientside is written in JavaScript and makes use of Socket.IO and jQuery as well as the APIs for various media providers. The web interface uses Bootstrap for layout and styling.

The following media sources are currently supported:

  • YouTube (individual videos)
  • YouTube Playlists
  • Vimeo
  • Dailymotion
  • Soundcloud
  • Livestream.com
  • Twitch.tv
  • RTMP livestreams

Installing

Installation instructions for specific distributions are available here: https://github.com/calzoneman/sync/wiki/Installing

This assumes you have Node.JS installed. I'm using v0.10, please feel free to report which versions do/do not work. I recommend using at least v0.8.20 due to a bug in previous versions of node that caused sketchy client connections to crash the server.

First install MySQL on the server. There are many online tutorials for setting up MySQL on various operating systems. I recommend installing phpMyAdmin so that you have a nice database administration interface. Create a new user and database, and make sure the user has full permissions for the database.

Then, follow these instructions to install CyTube:

  1. Clone this repository (git clone https://github.com/calzoneman/sync)
  2. cd to the directory containing the source files
  3. Install your distribution's libmysqlclient package.
  4. Install dependencies: npm install
  5. Edit config.js and input your database details and connection port
  6. Edit www/assets/js/iourl.js and change the value of IO_URL to yourhostname:port where port is the port defined in config.js

Running

Start the server: node server.js You should now be able to connect via yourhostname:port where port is the port you defined in config.js

Feedback

Please open a GitHub Issue.

License

Licensed under MIT See LICENSE for the full license text