Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.29 KB

File metadata and controls

37 lines (25 loc) · 1.29 KB

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.

Try it on Heroku

Click the button below to magically deploy up this example to your Heroku account. A cine.io plan will automatically be included for free.

Deploy

Run Locally

  1. Sign up for your own API key at cine.io.

  2. 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>'
    
  3. Bundle your gems:

    $ bundle install
    
  4. Run the server:

    $ ruby server.rb