Jan 08
Permalink

acts_as_unvlogable: One plugin to rule them all

We are proud to announce our acts_as_unvlogable, a ruby on rails plugin that allows you easily get the title, thumbnail and embed code from video services such as youtube, vimeo, metacafe… The only thing you need to know is the video URL.

Let’s see an example:

To insert this video into this post the application needs to know the video title, the correct way to embed the video, the thumbnail… You can do it this way:

    @videotron = UnvlogIt.new("http://vimeo.com/1785993")
    @videotron.title => "Beached"
    @videotron.thumbnail => "http://bc1.vimeo.com/vimeo/thumbs/143104745_640.jpg"
    @videotron.embed_url => "httphttp://vimeo.com/moogaloop.swf? [...] "
    @videotron.embed_html(width, height) => "<embed [...]</embed>"
    @videotron.flv => "http://...flv"
    # all together :)
    @videotron.video_details(width, height) => {
                                            :title => ...,
                                            :thumbnail => ...,
                                            :embed_url => ...,
                                            :embed_html => ...,
                                            :flv => ...
                                          }

You can manage as easy as the previous example videos from:

And we are always searching new video services to include in.

Awesome :)