Code for TF2Frags Website.
The mongodb database requires db.clips.createIndex({name:'text', description:'text'}) to be run in order for the search functionality to work.
GET /api/clips
Lists all clips in a condensed form, sorted by last uploaded
Lists details about specfic clip
GET /api/clips/count
Returns the amount of valid clips submitted
Add a clip
Updates the clip by id
Due to the way Twitch handles clips, there is no way that they can be controlled like the YouTube videos can be controlled. They are dissimilar from regular twitch vods (for some reason!) so cannot be controlled with the Twitch embed player api bindings like YouTube clips can be. There is a 30 sec max time on Twitch clips and then the next clip will be loaded regardless of whether it is actually finished or not (default clips duration is 28sec). YouTube videos must be embedable (on by default) as well.
The goal of this project is not to make money off of anyone elses content. I will not be enabling Twitch ads or subs for this reason. The intention is to provide publicity to members of the community that create content and to bring a variety of content into one common place.
I do not assume to own any of the content that is uploaded to the website, it is owned by the original creators of that content. If someone wants their content removed I am more that happy to do so