Getting Started
This document will guide us in setting up the 555 JS SDK and using it's different API features.
Get App Domain
Register on 555 Dev Portal as a developer and create a app domain and get app key and secret.
Get 555 Token
Check here for detailed guide how on to login and get the 555 JWT which is needed to access any 555 SDK or backend APIs.
Install JS SDK
Run below command to install JS SDK as a npm module
npm install iris-js-sdk
OR
Download latest JS SDK file from rtc-js-sdk-v3.5.23 and use it in your html file like below
<script src="iris-js-sdk.js"></script>
How to Access SDK APIs
If SDK is installed using npm module then do a require on iris-js-sdk
module to load JS SDK's classes.
require('iris-js-sdk');
var Connection = new window.IrisRtcConnection();
var Stream = new window.IrisRtcStream();
var Session = new window.IrisRtcSession();
var Config = window.IrisRtcConfig;
If SDK is loaded via script tag in html file then JS SDK's classes can be accessesd from client js files as shown below
var Connection = new IrisRtcConnection();
var Session = new IrisRtcSession();
var Stream = new IrisRtcStream();
var Config = IrisRtcConfig;
How to make to calls
API Reference
For all APIs and Callbacks details please refere JSDocs below