The OpenTok API

Agenda ● ● ● ● VONAGE CONFIDENTIAL

What is OpenTok? The OpenTok platform makes it easy to embed high-quality real-time interactive video, voice, messaging, screen-sharing and more into web, mobile, and desktop apps. VONAGE CONFIDENTIAL

What is OpenTok? The platform includes client-side SDKs for web, iOS, Android, and Windows as well as server-side SDKs that wrap the OpenTok REST API. VONAGE CONFIDENTIAL

OpenTok Basics VONAGE CONFIDENTIAL

OpenTok Basics ● ● ● ● VONAGE CONFIDENTIAL

Session ● ● ● VONAGE CONFIDENTIAL

Types of Sessions ● ● Relayed ○ Relayed (Peer-to-Peer) - Media is streamed directly between clients. Good for remote areas that are not close to an OpenTok Media Router. Routed ○ Routed - Media is streamed through OpenTok’s SFU. This provides upload bandwidth savings for large calls and the ability to record (archive), broadcast, and dial out with SIP. VONAGE CONFIDENTIAL

Token ● ● ● ● ○ ○ ○ VONAGE CONFIDENTIAL

Publishing & Subscribing ● ● Publisher ○ Creator of the stream ○ Has the ability to publish audio or video only Subscriber ○ Receiver of the stream ○ Has the ability to subscribe to audio or video only VONAGE CONFIDENTIAL

Events ● Session Events ○ Connection Events ■ connectionCreated ■ connectionDestroyed ○ Stream Events ■ sessionConnected ■ streamCreated ■ streamDestroyed ■ sessionDisconnected ■ sessionReconnecting ■ sessionReconnected ■ streamPropertyChanged ○ Error Event ■ Error ○ Signal ○ Many more VONAGE CONFIDENTIAL

API Model Publish: patient phone camera+audio Publish: stethoscope audio stream Subscribe: doctor video stream Publish: doctor laptop camera+audio Subscribe: phone video stream Subscribe: stethoscope audio stream VONAGE CONFIDENTIAL

OpenTok Platform VONAGE CONFIDENTIAL

Supported Platforms ● ● ● ● ● ○ ● ● ● ● VONAGE CONFIDENTIAL

Supported Browsers ● ● ● ● ● ● VONAGE CONFIDENTIAL

Archiving (Recording) VONAGE CONFIDENTIAL

Types of Archives ● ○ ○ ● ○ VONAGE CONFIDENTIAL

Layout Control ● ● ● You can specify the layout of the videos when you start the archive and you can also update the layout when the archive is in progress Predefined Layouts ○ Best Fit ○ Picture in Picture ○ Vertical Presentation ○ Horizontal Presentation Custom Layouts using CSS VONAGE CONFIDENTIAL

Resolution Support ● ● Composed ○ 1280 x 720 ○ 640 x 480 Individual ○ Resolution captured by the camera VONAGE CONFIDENTIAL

Storing Archives ● ● ● AWS S3 Microsoft Azure … VONAGE CONFIDENTIAL

API Model Publish: patient phone camera+audio Publish: stethoscope audio stream Subscribe: doctor video stream Archives S3 / Azure Start Archive Publish: doctor laptop camera+audio Subscribe: phone video stream Subscribe: stethoscope audio stream VONAGE CONFIDENTIAL

Let’s build! https://github.com/msach22/opentok-vonage-campus VONAGE CONFIDENTIAL