Intro
Collegerama lacks a 'watch this video offline' button. This project downloads the lecture and its slides and watch it in your browser.
Installation
git clone git@github.com:MartijnDwars/collegerama.git
npm install
Download
If you just want to download the lecture, simply use node download.js <resource-id>
. The resource id is the part next to 'Play' in the URL. For example, in:
it is 23c483f3255d411381c3ee583a8967451d.
Usage
If you want to use this as a local Collegerama clone:
- Figure out how to download the .mp4 for yourself
- Use
node download.js <resourceId>
to download the slides - Serve
index.html
- Run some webserver that serves
index.html
(e.g. Apache, nginx) - Run Chrome with cross-origin check disabled (e.g
open /Applications/Google\ Chrome.app --args --allow-file-access-from-files
)
FAQ
- You might need to increase the file descriptor limit. See http://stackoverflow.com/questions/34588/how-do-i-change-the-number-of-open-files-limit-in-linux