cine.io Broadcast Example Application in Sinatra
This is an example application in Ruby and Sinatra showing the capabilities of cine.io broadcast. It uses the cine.io Broadcast JS SDK and the cine.io Ruby SDK. This sample app can create streams, publish to them, and play them back.
Click the button below to magically deploy up this example to your Heroku account. A cine.io plan will automatically be included for free.
-
Sign up for your own API key at cine.io.
-
Set up your environment:
$ export CINE_IO_PUBLIC_KEY='<your cine.io project public key>' $ export CINE_IO_SECRET_KEY='<your cine.io project secret key>'
-
Bundle your gems:
$ bundle install
-
Run the server:
$ ruby server.rb