Code for TF2Frags Website
Lists all clips in a condensed form, sorted by last uploaded
Lists details about specfic clip
Returns the amount of valid clips submitted
Returns the next 20 clips in the queue
Returns extra information about the current clip
Returns some information about the previous clip
GET /api/clips/randomise (requires authorization)
Randomises the order of the clips
POST /api/clips/next (requires authorization)
Updates the current clips and loads the next one
POST /api/clips/:_id (requires authorization)
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