Building a Simple Video Chatroom with Sinatra and OpenTok

This tutorial will show you how to create a simple, yet functional video chatroom using the OpenTok API and Sinatra. Sinatra is a Ruby framework which allows you to quickly create web apps.

The App

The app we’ll be creating will be a simple website which will allow you to instantly create a video chatroom.

Setup

So, let’s get started! First of all, you’ll need to install Sinatra. To do this, type the following command in the terminal:
[code]
gem install sinatra
[/code]
Then, create a new folder and inside, make a new file called app.rb.

Read More

Making customer service with OpenTok easy – OTCS

icn_labs_OTCS-metalToday we’re excited to announce OpenTok for Customer Service (OTCS). This is our first solution built on top of the OpenTok platform, and will make it faster and easier for our partners to implement face-to-face video chat for customer service applications.

Over the past few years, we’ve had the opportunity to keep a close watch on use case trends in the video space. One common thread was present amongst the majority of the use cases that we encountered: customer service. Whether it was pre-sales support, post-sales customer assistance or expert consultations they all required some basic call functionality that wasn’t available through the standard OpenTok APIs.

Read More

Introducing Cloud Raptor SDK – Robust apps made easy

icn_labs_raptor-metalToday, the OpenTok platform adds the Cloud Raptor SDK into the fold. Partners’ application servers can use the Cloud Raptor SDK to listen to the events and messages that pass through an OpenTok session. Accessing these events and messages on the application server makes it easier to integrate OpenTok logic with the application logic. (Prior to Cloud Raptor, OpenTok events and messages were only available on the client.)

Before today, building robust applications with the OpenTok platform meant writing a distributed application across many clients. The clients either synchronized between themselves, the partner sent back a lot of AJAX calls to their server, or the developer used a service like Parse. Now, with the Cloud Raptor SDK, OpenTok developers can have one OpenTok brain for their application – simplifying the development and extending the possibilities simultaneously.

Read More

Quality of Experience and Traffic Shaping – the next step with Mantis

Today, we are happy to announce yet another significant milestone in the technical evolution of the OpenTok platform – dynamic traffic shaping for audio and video through our Mantis infrastructure. We are now optimizing the experience for every participant in a multi-party call.

WebRTC is essentially defined as a peer-to-peer protocol for real-time browser-based communication. The problem is that countless real-world applications require multi-party support. So eight weeks ago we unveiled Mantis to solve this. Mantis is our next-generation cloud-scaling infrastructure that enables developers to deliver bandwidth-efficient multi-party WebRTC support.

Read More

API Scavenger Hunt Recap and Solution

Last weekend we ran a Family Guy Themed API Scavenger Hunt, and this was our question:

Peter Griffin wants to Video Chat with a well known Tech Consultant named Song Zheng to find out what tech trends he should invest in. After scouring the interwebz, a wise cat told him that Song is an evangelist at TokBox and his ApiKey is “25925352”. He is always connected to the session ‘2_MX4yNTkyNTM1Mn4xMjcuMC4wLjF-V2VkIE1heSAyOSAxNzoxMjozNyBQRFQgMjAxM34wLjk0MjQ2NjQ0fg’. To connect to that session, the wise cat has also intelligently acquired the access token:

"T1==cGFydG5lcl9pZD0yNTkyNTM1MiZzZGtfdmVyc2lvbj10YnJ1YnktdGJyYi12MC45MS4yMDExLTAyLTE3JnNpZz00YTNjYjk5ZThhOGVhNTMxOWMyYmY3NzQzNmM5MmRmNTgzNDIyNzc2OnJvbGU9cHVibGlzaGVyJnNlc3Npb25faWQ9Ml9NWDR5TlRreU5UTTFNbjR4TWpjdU1DNHdMakYtVjJWa0lFMWhlU0F5T1NBeE56b3hNam96TnlCUVJGUWdNakF4TTM0d0xqazBNalEyTmpRMGZnJmNyZWF0ZV90aW1lPTEzNjk4NzI3NjAmbm9uY2U9MC42MDQ5NzIyNjY5NDExNDA4JmV4cGlyZV90aW1lPTEzNzI0NjQ3NjUmY29ubmVjdGlvbl9kYXRhPQ=="

To solve this puzzle, you would have to connect to Song’s session and subscribe to his video stream using WebRTC. You might also want to publish your video as well so he can see you.

Read More

Firefox support opens up new world of WebRTC possibilities

firefox_logo-only_RGB-300dpi

We’re incredibly pleased to see Mozilla launch Firefox with WebRTC enabled by default.  With Mozilla’s Firefox joining the WebRTC family, millions of people will have the opportunity to experience high-quality plugin-free face-to-face video within web applications.

TokBox’s OpenTok platform provides APIs and infrastructure that make it incredibly easy for web and mobile developers to build and deploy WebRTC-powered video applications.  WebRTC enables Firefox to give Javascript access to your webcam and microphone, and supports powerful P2P networking protocols.

Read More

The Great API Scavenger Hunt

This weekend is going to be an action packed Family Guy Themed API Scavenger Hunt!
stewie-family-guy-29507418-2560-1758

Thanks to SignalFire‘s creative efforts , you will get to role play as a Family Guy character solving puzzles and winning points through reading documentation and using APIs to help you through your journey. The guys from Pearson Developers explains it best:

Read More

Building a Simple Video Chatroom with Flask and OpenTok

OpenTok Flask Demo
This tutorial will show you how to create a simple, yet functional video chatroom using the OpenTok API and Flask. Flask is a python based micro-framework to create web apps.

The App

The app we’ll be creating will be a simple website which will allow you to instantly create a video chatroom.

Setup

So, let’s get started! First of all, you’ll need to install Flask. Then, create a new folder and inside, make a new file called main.py.

Read More

TDHack: A chance to explore the Tel Aviv developer community

What happens when you take an API evangelist for OpenTok and introduce him to a bunch of developers in a place he’s never been to, for example Tel Aviv? Yeah, I had no idea either. It turns out that in a place like Tel Aviv, where there are some brilliant startups springing up, there’s no shortage of awesome developers with endless creativity.

TDHack, the first Telefonica Digital Israel hackathon, took place this past weekend. I saw it not only as an opportunity to go meet some our extended family, but to jump out of the American startup scene that I know so well and see how things are different (or the same) in Israel.

Read More

Can Some One Turn Me On?

Here’s our dirty little secret: for the longest time, our little team here at TokBox never used TokBox to talk to each other. There was no need. We all worked together in our Wes Anderson-esque office in SOMA, ate lunch together around our big table, and went for coffee breaks together at Epicenter on Harrison Street.

Then last summer I moved to NYC. I learned quickly that it’s tough to get a team that doesn’t have a remote co-working culture to pick it up right away — not even a team that works on video chat. Desk drive-bys for quick questions became long IM threads. Impromptu meetings with the whiteboard became “oops we forgot to call you” or “dammit, I can’t see the whiteboard” fails. Casual lunch conversation became…nothing.

We got better at this, but the turning point was when Double Robotics loaned us a Double to beta test (Disclosure! TokBox powers the video component for Double). We affectionately named it J9000.

My Double and I are about the same height.

J9000 and I are about the same height.

Read More