ZeroVM video browser demo application
JavaScript CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
screenshots
.gitignore
.jshintrc
.travis.yml
LICENSE
README.md
avconv
browser.js
extract-meta.json
extract-thumbnail.json
handlebars-v1.3.0.js
index.html
screenshots.md
style.css
zapp.yaml
zerocloud.js

README.md

video-browser

Build Status ZeroVM video browser demo application.

Screenshots

Because deploying this app requires some upfront work (you need to install Swift and ZeroCloud), we have created some screenshots to show you what it looks like.

Deployment

The video browser can be bundled and deployed with zpm:

$ zpm bundle
$ zpm deploy video-browser video-browser.zapp

You need to have your Swift credentials configured for this to work. Please see the zpm documentation for more information.

Usage

Create a container called videos and upload some objects there (currently only tested with MP4 files):

$ swift post videos
$ swift upload videos *.mp4

You can download test movies from the Internet Archive.

Now browse to the index.html page and it should show a listing of the videos in your videos container.

You will see six videos at a time and you can page between them. For each video, the JavaScript will first try to extract a title from the metadata associated with the object in Swift (using the title key). If that fails, it calls out to the extract-meta helper which then tries to analyze the object.

Contributing

Please open a pull request! We will look at the code and try to respond as fast as we can. Travis will run a small test, so make sure that your pull request passes that test first.

Compatibility

After d1b2fbb, you need to use Internet Explorer 10, Firefox 28, or Chrome 33 to see the extracted thumbnails. This is because the code uses XMLHttpRequest Level 2 features, such as setting responseType to blob in order to directly retrieve the binary data for the thumbnails. Please see issue #14 about restoring IE 9 compatibility.

License

This software is license under the Apache 2.0 license. Please see the LICENSE file for details.