www.SmarteGuru.com
  Home | Blogs | Recipe | Find a Friend | Discussion Board | Resources | Developers Area | Articles | Health |  Login | Register Now 

acts_as_video_fu : ROR plugin for video streaming

Rails plugin that easily allows you to show video streams on your site. Currently, YouTube and Vimeo streams are supported.
#video_url is expected to be in these formats:

YouTube: http://www.youtube.com/watch?v=gEILFf2XSrM
Vimeo: http://www.vimeo.com/726135

Example

./script/generate scaffold Video title:string video_url:string

#video.rb
class Video < ActiveRecord::Base
acts_as_video_fu
end
Video.create!(:title => "Some Title", :video_url => "http://www.youtube.com/watch?v=gEILFf2XSrM")

#show.html.erb
<%= display_video(@video) %>

Home: http://blog.matt-darby.com

Repository: git://github.com/mdarby/acts_as_video_fu.git

Related Posts

Tags: , , , , ,


Viewed: 267 views

Leave a Reply

Comment moderation is enabled. Your comment may take some time to appear.

Home - About Us - Help - Terms and Conditions - Site Map - Link to Us - Resources - Contact Us
Google Rank Calculator | Suggest developer resource | Suggest Article
All rights reserved © 2007 SmarteGuru.com.