Git Product home page Git Product logo

acts_as_ooyala's Introduction

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

acts_as_ooyala's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.