-*- word-wrap: t; -*-
Video browing and selection front end for Wayne McGregor|Random Dance's Becoming project.
The code here draws on a demonstration ClojureScript and Backbone project by Konrad Garus, but implements a complete Backbone MVC stack, rather than doing the event capture by hand, and also links into some HTML5 video control machinery.
The front end is written in ClojureScript and uses Backbone.js as its control framework (sitting on jQuery). Page layout is assisted by Bootstrap. The actual pages are written in Clojure and rendered out using Hiccup, Compojure and Ring.
Install Leiningen. Then, in the project directory:
-
lein once
to build the Javascript -
lein go
to run the server
The test site will then be running on http://localhost:3000
. Use lein auto
to run an auto-compiler on the ClojureScript if you want to modify it. (Changes to the Hiccup page declarations will be picked up automatically on reload.)
Note: the site needs access to a tree of video assets (with thumbnails) in order to work. We're working on this, and an abstraction layer to allow the system to access different kinds of assets.
Copyright © 2013 Nick Rothwell
Distributed under the Eclipse Public License, the same as Clojure.