Skip to content

jerome/acts_as_video_fu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: https://www.youtube.com/watch?v=gEILFf2XSrM 
Vimeo: https://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 => "https://www.youtube.com/watch?v=gEILFf2XSrM")


#show.html.erb

# Show the video
<%= display_video(@video) %>

# Show the video's thumbnail image
<%= image_tag thumbnail_url(video) %>


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

About

Rails plugin that easily allows you to show video streams on your site.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published