Node.JS Server and JavaScript/HTML Client for synchronizing online media
Go to file
calzoneman 65d7a8a455 Fix user.js for new auth 2013-08-17 15:54:23 -05:00
tests Fixes 2013-05-27 15:43:37 -04:00
www Remove faulty requestPlaylist 2013-08-12 00:27:30 -04:00
LICENSE Fix licensing 2013-07-06 11:25:12 -04:00
README.md IMPORTANT READ COMMIT MESSAGE 2013-05-31 15:27:28 -04:00
acp.js Start updating auth dependencies 2013-08-16 11:01:31 -05:00
actionlog.js Refactor actionlog queries 2013-08-15 17:44:22 -05:00
api.js Amend last commit 2013-08-16 13:26:31 -05:00
auth.js Change config system 2013-07-28 11:49:29 -04:00
channel.js Remove unnecessary import 2013-08-17 15:47:24 -05:00
chatcommand.js Implement Auto-AFK (#192) 2013-07-28 17:58:22 -04:00
config.js Start working on API refactor 2013-08-07 23:44:41 -04:00
customembed.js Forgot to add file 2013-08-03 11:50:41 -04:00
database-old.js Start switching to node-mysql 2013-08-12 10:34:57 -04:00
database.js Finish channel.js 2013-08-17 15:47:11 -05:00
filter.js Continue working on filters 2013-06-18 11:51:42 -04:00
get-info.js Add try-catch to urlRetrieve to prevent uncaught HTTPS exceptions 2013-08-11 17:44:48 -04:00
logger.js Fix logger being closed inappropriately 2013-07-29 19:59:52 -04:00
media.js Remove unused media vars, fix double adds 2013-07-03 19:11:38 -04:00
notwebsocket.js Fix NWS failing on non-ASCII messages 2013-06-25 10:48:14 -04:00
package.json Start switching to node-mysql 2013-08-12 10:34:57 -04:00
playlist.js Fix weird case of playlist skipping when removing leader 2013-08-08 20:42:46 -04:00
poll.js Finish refactoring 2013-04-03 12:47:41 -05:00
rank.js Add permissions editor; fixes for bans 2013-05-22 15:38:16 -04:00
run.sh Fix bad MySQL results crashing it 2013-03-18 12:17:56 -05:00
server.js Merge branch 'master' into apirefactor 2013-08-12 00:09:50 -04:00
stats.js Hopefully shed some light on stats issue 2013-07-17 22:55:50 -04:00
ullist.js Fix licensing 2013-07-06 11:25:12 -04:00
update.js Fix #205 (run update.js) 2013-07-09 20:28:54 +04:00
user.js Fix user.js for new auth 2013-08-17 15:54:23 -05:00
utilities.js Finish refactoring api 2013-08-16 10:37:26 -05:00
version.py Add version update script 2013-04-23 16:16:43 -05:00

README.md

Read before submitting an issue: https://github.com/calzoneman/sync/wiki/Reporting-an-Issue

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
  • Justin.tv
  • Ustream
  • 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. Optionally, configure an SMTP transport to use for sending password reset emails (see https://github.com/andris9/Nodemailer).
  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. Also change WEB_URL to yourhostname:web_port where web_port is the websocket port you 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