Project

streamapi

0.0
No commit activity in last 3 years
No release in over 3 years
StreamAPI is the easiest and most cost effective way to incorporate live streaming video into your website or application.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.5
 Project Readme

StreamAPI + Ruby¶ ↑

This is a Ruby gem for the StreamAPI. I have created in order to do a rapid prototype so expect a lot of deficiencies and complete lack of tests. Most of the code is influenced by the Wordnik Ruby client.

Example Usage¶ ↑

Let’s fire up an irb session:

$ irb
>> require 'streamapi'
=> true

Then create a session:

$ streamapi=StreamAPI::Client.new(:api_key=>yourapiky, :secret_key=>yoursecretkey, :site_id=>yoursiteid)

You can now call any of the methods provided by StreamAPI, for example:

$ themes = streamapi.list_themes()

Create a new session:

$ session = streamapi.create_session('panosjee',nil,true,false,1)

You can also create the embed object for the StreamAPI player:

StreamAPI::Embed.to_html(session['private_host_id'], session['public_host_id'], streamapi.site_id, theme)

Copyright © 2010 Panagiotis Papadopoulos / 6pna.com. See LICENSE for details. Patches are very welcome!