public
Description: Rails plugin for Kaltura API
Clone URL: git://github.com/eastmedia/kaltura.git
Search Repo:
name age message
folder .gitignore Sun Apr 20 01:30:32 -0700 2008 Add .gitignore [bricolage]
folder MIT-LICENSE Mon Apr 14 11:46:39 -0700 2008 Minor cosmetic changes to MIT-LICENSE and README [bricolage]
folder README Tue Jul 15 08:05:26 -0700 2008 Update README to clarify some of the plugin and... [bricolage]
folder Rakefile Tue Mar 25 01:19:26 -0700 2008 -v [bricolage]
folder TODO Tue Mar 25 01:19:26 -0700 2008 -v [bricolage]
folder examples/ Tue Jul 15 17:02:01 -0700 2008 Add two static examples: kplayer and simple_edi... [jdg]
folder init.rb Mon May 19 12:18:26 -0700 2008 - Add add_widget to kshow's [jdg]
folder lib/ Tue Jun 10 14:19:18 -0700 2008 Add updatekshowowner / update_username, to upda... [jdg]
folder patches/ Mon May 19 12:18:26 -0700 2008 - Add add_widget to kshow's [jdg]
folder spec/ Wed Jul 09 10:01:49 -0700 2008 Small spec fix - id's for entries/kshow's are n... [jdg]
folder templates/ Tue Jul 15 17:04:08 -0700 2008 Update kaltura.yml.template with default simple... [jdg]
README
Kaltura API
======================

An ActiveResource-like RESTful interface to the Kaltura API

You can copy the templates/kaltura.yml.template file into your Rails app as config/kaltura.yml.
Replace the values with your own partner info that you received from Kaltura.

Specs are to test the Kaltura API directly, not this library itself.

Kaltura Pre-requisites
======================

You will need to signup for a Kaltura partner account so you can setup kaltura.yml in your RAILS_ROOT/config (see 
templates/kaltura.yml.template).

A note about Kaltura "ks" sessions
======================

Kaltura's backend uses its own session system that is completely independent from the Rails session. Kaltura's 
implementation requires that some requests use a regular session id, and some use an 'admin' session id. We have 
attempted to completely encapsulate it in the API's lower-level calls so you don't need to worry about which kind to 
make (see Kshow#admin_session_for to see which ones require admin sessions). When using the SWFs in views you may need 
to specify a ks. We will be posting some examples shortly displaying Kaltura's views.

Code Pre-requisites
======================

* ActiveSupport
* ActiveResource

Please note that there is a small bug in ActiveResource, where it will not return the response data if the response 
contains unescaped %'s.  See patches/patch_for_activeresource_connection.rb for the fix.

Example
======================

# Creating a new Kshow:
ks = Kaltura::Kshow.new
ks.name = 'Example Kshow'
ks.puser_id = 'kaltura_user_id'
ks.save

Credits
======================

Developed by Eastmedia (http://eastmedia.com)
Sponsored by Remix America (http://remixamerica.org)

Copyright (c) 2008 Matt Pelletier, Eastmedia (http://eastmedia.com)
See MIT-LICENSE in this directory.