With all the excitement going on with webRTC and iOS interoperability, I’m sure many are excited to get started. If you don’t have time to navigate through the docs, then you’ve come to the right place. In this article, I’m going to show you how to get started! If you didn’t know already, webRTC is a new HTML5 spec for interactive media streaming on the web.
Browser to Browser
This is very simple. All you have to do is go through our getting started tutorial. The basic idea behind OpenTok SDK is a publisher/subscriber model in a session. First you connect to a session, then you publish to a session. As other people publish to a session, you’ll get a streamCreated event, in which you’ll simply subscribe to their video stream. If you open up multiple tabs you’ll be able to see multiple videos. By default, the tutorial uses our flash stack. But we want WebRTC, so all we have to do is change our javascript library: