Node.JS Server and JavaScript/HTML Client for synchronizing online media
Go to file
calzoneman 78ecc042d6 Allow custom regex flags
Fixes Issue #29
For example, match "word" without case sensitivity, match globally:
word/ig
If you want to match a literal slash, escape it with a backslash: \/
2013-04-16 11:02:00 -05:00
www Allow custom regex flags 2013-04-16 11:02:00 -05:00
LICENSE Change license to MIT 2013-03-23 21:28:20 -05:00
README.md Add package.json 2013-04-14 18:16:48 -05:00
auth.js Wrap bcrypt in a try-catch 2013-03-27 15:02:43 -05:00
channel.js Allow custom regex flags 2013-04-16 11:02:00 -05:00
chatcommand.js Tweaks to Leaders, add kick messages 2013-04-14 12:38:00 -05:00
config.js Change quotes to be consistent 2013-03-24 12:23:48 -05:00
database.js Fix banning 2013-04-10 19:51:30 -05:00
get-info.js Implement YouTube search, minor fixes, remove "Play Next" button 2013-04-04 11:39:43 -05:00
logger.js Improve logging 2013-03-27 14:28:51 -05:00
media.js Continue refactoring 2013-04-02 22:56:44 -05:00
package.json Add package.json 2013-04-14 18:16:48 -05:00
poll.js Finish refactoring 2013-04-03 12:47:41 -05:00
rank.js Fixes and stuff 2013-04-04 14:56:43 -05:00
run.sh Fix bad MySQL results crashing it 2013-03-18 12:17:56 -05:00
server.js Fix "end poll" button for leaders 2013-04-16 10:43:53 -05:00
user.js Tweaks to ACP and channel options 2013-04-06 16:08:26 -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://cytube.calzoneman.net

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

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