Getting Started with OpenTok-RTC

Lance Watanabe
2 min readSep 22, 2020

--

OpenTalk-RTC is a web-based video conferencing app that uses the OpenTok platform. OpenTalk-RTC has its own customizable user interface. As I struggled to get it working, here is a quick start guide that may help you.

  1. Download the repository from github: https://github.com/opentok/opentok-rtc
  2. Install Windows dependencies:
npm install -g grunt-cli
  • Install bower globally:
npm install -g bower

3. Create a config.json file in the config folder. Copy the code in the config/example.json file and paste it into your config.json file. Edit the following code:

{
"OpenTok": {
"apiKey": "<key>"
"apiSecret": "<secret>"
}
},
{
"Firebase": {
"dataUrl": "<firebase_url>",
"authSecret": "<firebase_secret>"
},
"Archiving": {
"enabled": true,
"archiveManager": {
"enabled": true
}
}
}

4. Install dependencies:

npm install

5. Run redis server:

redis-server

6. Run application:

npm run dev

7. If the UI (CSS) does not appear to load, run the following commands:

bower install
grunt clientBuild

8. To enable recording go to the config.json in the config folder:

"Archiving": {
"enabled": true,
"archiveAlways": false,
"pollingInitialTimeout": 5000,
"pollingTimeoutMultiplier": 1.5,
"archiveManager": {
"enabled": false,
"emptyRoomMaxLifetime": 3
}
},

Also, go into the room.less file and remove “display: none” from #startArchiving

Lastly, go to the min.ejs, roomView_spec.html file, and room.ejs file and remove “disabled” from the <li disabled> parent of the <a id=”startArchiving”>

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response