Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Example application using Panda, the video platform in Rails
Ruby JavaScript
branch: master

This branch is 20 commits behind pandastream:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
doc
lib/tasks
public
script
test
vendor/plugins
.gitignore
Gemfile
README.md
Rakefile
config.ru

README.md

Panda example application, Rails

An example Rails web app that uses Panda to encode videos and embed them.

The full tutorial is available here: http://pandastream.com/docs/integrate_with_rails

See also:

Setup

This application has been tested successfully with Rails 3.0.3.

By default, Panda will encode your videos using the H.264 codec, playable with the HTML5 <VIDEO> tag. This example will use this to play your videos. Make sure you use a compatible browser to watch it.

Before running the app, you need to configure it with your Panda details. For this, copy the file config/panda.yml.example into config/panda.yml, and enter your details there.

What does this do anyway?

The application will initially show a simple form where you can specify a video file to upload from your computer. Once uploaded, it will ask you to wait a bit until all is encoded. You'll have to reload the page yourself until this is done.

Finally, the video will appear embedded on the page. If you wish to try again with another video, a link is provided to restart the process.

Notes

Something went wrong with that request. Please try again.