Skip to content

P99/talexample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting started

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

Design

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

History API

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.

Demo

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!

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.8%
  • CSS 8.6%
  • HTML 2.5%
  • Shell 0.1%