0.02
No commit activity in last 3 years
No release in over 3 years
Rails plugin that easily allows you to show video streams on your site.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.3.1
 Project Readme

ActsAsVideoFu

A Rails plugin that easily allows you to show video streams on your site.
Currently, YouTube and Vimeo streams are supported.

Note that #video_url is expected to be in these formats:

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

Installation

  1. Install the gem
    sudo gem install mdarby-acts_as_video_fu
  1. Require the gem in your config/environment.rb file
    config.gem ‘mdarby-acts_as_video_fu’, :lib => ‘acts_as_video_fu’

Example

  1. Generate a resource that includes the title:string and video_url:string attributes
    ./script/generate scaffold Video title:string video_url:string
  1. Add ‘acts_as_video_fu’ to your model

    class Video < ActiveRecord::Base
    acts_as_video_fu
    end
  1. Show the video’s thumbnail in any view you might like
    <%= image_tag thumbnail_url(video) %>
  1. Add the ‘display_video’ helper to show the full-sized video in any view you might like
    <%= display_video(@video) %>

Copyright © 2008 Matt Darby, released under the MIT license