npm install
node index.js
Launch http://localhost:8080
Note: The setup requires Node.js only While running locally we use a remote MongoDB database hosted on MongoLabs
This project is using TAL framework. It is a fork from talexemple and therefore remains under Apache 2.0 license. This framework have existing carousel components and built in spatial navigation. We also use Moment.js, require.js, Node.js Express and friends. Icons are from font awesome. The videos data and thumbnails are the courtesy of IMDB
Previously played videos are stored on server side, using Node.js / MongoDB
The server is exposing a REST API to handle history items
Operation | Method | URI | Usage |
---|---|---|---|
Create | PUT | api/history/new | When user starts playing a video |
Read | GET | api/history/all or api/history/ | When user select the History menu |
Update | POST | api/history/ | When returning from playback, elapsed time is amended |
Delete | DELETE | api/history/ | Not used so far... |
All history items are stored on a per user basis, using cookies.
A bookmark icon appears on previously visited videos to show they can be resumed.
Checkout the Sample VOD Application demo on OpenShift
If you want to install the demo on OpenShift, just choose on Node.js + MongoDB cartridge
Then push this repository... You are up and running!