Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

This plugin wraps the Ooyala API into a acts_as module that we all know and love in the Rails world.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 tasks
Octocat-spinner-32 test
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.textile
Octocat-spinner-32 Rakefile
Octocat-spinner-32 init.rb
Octocat-spinner-32 install.rb
Octocat-spinner-32 uninstall.rb
README.textile

ActsAsOoyala

This plugin wraps the Ooyala API into a acts_as module that we all know and love in the Rails world.

Example

class Video < ActiveResource::Base acts_as_ooyala end

live = Video.find_live(:all) # => returns a list the live videos pending = Video.find_pending(:all) # => returns a list of pending videos paused = Video.find_paused(:all) # => returns a list of paused videos lifetime_stats = Video.find_live(:all, { ‘statistics’ => ‘1d,2d,7d,28d,30d,31d,lifetime’ }) all_trailers = Video.find(:all, { ‘label0’ => ‘trailers’ }) specific_video = Video.find(‘plajrfuW5PS5rgc-kuc9ZWtFtdnYpfiK’) thumbnails = Video.find_thumbnails({’embedCode’ => ‘lsZzQ2OmH9JnR_MBNL8KUyn1z6YaMLMp’, ‘range’ => ‘0-99’, ‘resolution’ => ‘320×240’})

Helper Methods

There is also a helper method for embeding the video in the view.


<%= embed_ooyala(@video, { :callback=>'ooyalaCallback', :width => "560", :height => "315", :autoplay => 1, :loop => 1, :playerId => 'ooyala_video' }) %>

Copyright © 2008 Mark Daggett, released under the MIT license

Something went wrong with that request. Please try again.