Skip to content

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

This branch is even with heavysixer:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
tasks
test
MIT-LICENSE
README.textile
Rakefile
init.rb
install.rb
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.