Variables
This document lists the variables available in the Samvyo SDK Instance, along with descriptions and code examples for implementation.
const samvyoInstance = await samvyo.JsSdk.joinRoom({
sessionToken,
roomId,
peerName,
produce: true, // Set to true to send audio/video streams
consume: true, // Set to true to receive audio/video streams
// Additional parameters can be added here as needed
});
activeParameters
Description
Get the parameters which has been used for the current joinroom request. This would be useful to know in case the call quality is not as expected to see if some parameter setting can be changed to improve the call quality while joining next time.
Example:
const activeParameters = samvyoInstance.activeParameters;
currentlyActiveSpeaker
Description
Get the peerId and the volume of currently active speaker. The value changes whenever the currently active speaker changes. It has the details emitted by the event activeSpeaker.
Example:
const currentlyActiveSpeaker = samvyoInstance.currentlyActiveSpeaker;
deviceList
Description
Get the list of all the input devices currently available in the system(Camera and Mic). The deviceList variable is an object which has an array as below.
const deviceList = samvyoInstance.deviceList;