Plugins - acts_as_video_fu

StarAdd to favorites

ActsAsVideoFu
=============

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) %>

Copyright (c) 2008 Matt Darby, released under the MIT license

Matt Darby

http://blog.matt-darby.com

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

Rails' (MIT)

  • Currently 5.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Assets

Tags

Comments

Add a comment
Robb Shecter 6 Oct 2008

Interesting idea. I embed youtube videos on my site, but am not that this would work for me.

It'd be cool if this directory entry had an attribute for a screenshot or a link to a demo page.

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?