Skip to content
Code for TF2Frags.net website
JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
contollers
public
routes
src
tests
views
.eslintrc.json
.gitignore
LICENSE
README.md
package-lock.json
package.json
server.js

README.md

TF2Frags.net

Code for TF2Frags Website

API Endpoints

GET /api/clips

Lists all clips in a condensed form, sorted by last uploaded

GET /api/clips/:_id

Lists details about specfic clip

GET /api/clips/count

Returns the amount of valid clips submitted

GET /api/clips/queue

Returns the next 20 clips in the queue

GET /api/clips/current

Returns extra information about the current clip

GET /api/clips/previous

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

Limitations

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.

Project Info

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

You can’t perform that action at this time.