Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 833 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 833 Bytes

browser-sdk

A javascript browser side sdk for januscaler built on top of core-januscaler-js

Consumer Level Architecture

  1. VideoCall Operations Example
import { JanuScaler } from '@januscaler/browser-sdk';

const client = new JanuScaler({
	token: `secure access token from backend-sdk or trusted source`
});  

await client.init({ debug: false });  

const videoCallHandle = await client.videoCall.createServiceHandle();  

videoCallHandle.eventStream.subscribe((event) => {});
videoCallHandle.events.onRegistered = (registeredEvent) => {};
videoCallHandle.events.onIncomingCall = (callerEvent) => {};
function registerUser(userNameToRegister) {
	return await videoCallHandle.register(userNameToRegister);
}
function callUser(userNameToCall) {
	return await videoCallHandle.call(userNameToCall)
}

LICENSE

MIT