Skip to content

Setting up video chat service in Social Stream Presence

agordillo edited this page Mar 6, 2012 · 16 revisions

Social Stream Presence uses OpenTok to provide videoconference support. Setting up this service is incredibly easy.

  1. Get your OpenTok api key
    Follow this instructions: Get an OpenTok APIKey.

After submit the form you will receive a email like this:

TokBox
Hi,
This key is yours for developing with the OpenTok API:

API key: "your OpenTok API key"
API secret: "your OpenTok API secret"

 
  2. Update the initializer.
You can find the Social Stream Presence initializer at yourApp/config/initializers/social_stream_presence.rb.
You only need to fill two params with the keys mentioned above:

  #OpenTok settings (Only for videochat)
  #Replace with your OpenTok API key.
  #config.opentok_api_key = ""
  #Replace with your OpenTok API secret.
  #config.opentok_api_secret = ""

Since you specify an OpenTok api key, automatically, a new icon will be displayed in the chat windows to start the videoconference.

 
  3. Get access to OpenTok production environment.
Finally you need to submit this form.
That's all!
 

Clone this wiki locally