c152a19624
The use of the channel library as a cache for metadata to avoid re-requesting metadata for known media is an optimization that dates back to 1.0. However, it doesn't have any TTL, is prone to bugs, and is of dubious value. This commit ignores the results of the library check when queueing a new video, opting to always re-request the metadata. This fixes a few bugs: * Google Drive metadata being lost when storing in library * Streamable metadata being lost when storing in library * Videos in the channel library that are now unavailable on their source website being queueable and then failing to play (e.g. deleted YouTube videos). In its place, a small fail-open check is left behind to emit metric counters on how many queues would have been cache-hits, to provide insight into whether a proper caching solution (i.e. one not tacked on top of the library) would be worth pursuing or not. This will be removed eventually. |
||
---|---|---|
conf/example | ||
docs | ||
gdrive-userscript | ||
integration_test | ||
player | ||
src | ||
templates | ||
test | ||
www | ||
.gitignore | ||
.travis.yml | ||
build-player.js | ||
config.template.yaml | ||
index.js | ||
ISSUE_TEMPLATE.md | ||
LICENSE | ||
NEWS.md | ||
package.json | ||
postinstall.sh | ||
README.md | ||
run.sh | ||
servcmd.sh.js |
Read before submitting an issue: https://github.com/calzoneman/sync/wiki/Reporting-an-Issue
calzoneman/sync
About
CyTube is a web application providing media synchronization, chat, and more for an arbitrary number of channels. I began developing this as a hobby project, and when synchtube.com 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.
Features
- Standalone web/socket.io server
- Optional SSL support for socket.io and the account API
- Synchronized playback from the following sources:
- YouTube (individual videos + playlists)
- Google Docs videos
- Vimeo
- Dailymotion
- Soundcloud
- Raw video/audio files (via video.js)
- Embedding of the following sources:
- livestream.com
- twitch.tv
- justin.tv
- ustream.tv
- RTMP streams
- Custom
<iframe>
and<object>
embeds
- Channel customization
- HTML Message of the Day
- CSS
- JavaScript
- Permissions
- Tiered ranks (Site admin > Channel admin > Moderator > Leader > Member > Guest > Anonymous)
- Chat filters (based on regular expressions)
- Lock/unlock playlist to allow additions by non-moderators (configurable with permissions)
- Searchable library of videos
- Integrated YouTube search
- Save/load playlists per user account
- Polls
- Voteskip (can be disabled by a channel moderator)
- Auto-AFK status (can be configured per-channel)
- Leader
- Grants control of playback to a user (can pause/seek)
- Can also be used to grant temporary mod-like powers to a user
- Not necessary for synchronization as the server has an internal timer
- Channel state saves/loads on restart
- Account management
- Password change
- Password reset (via email)
- Profile avatar and text
- Moderation
- Mute users
- Kick users
- Ban users by name
- Ban users by IP address (and by /24 range)
- Administration
- Log viewer
- Global bans
- Search registered channels and users
- Currently loaded channels
- Stats (usercount, channelcount, RAM usage)
Installing
Installation instructions are available here: https://github.com/calzoneman/sync/wiki/CyTube-3.0-Installation-Guide
Feedback
Please open a GitHub Issue.
License
Licensed under MIT. See LICENSE for the full license text.