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
- Panda gem: http://github.com/newbamboo/panda_gem/
- Panda uploader: http://www.pandastream.com/docs/uploading_video
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, 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.