Variables
This document lists the variables available in the Videoedge SDK Instance, along with descriptions and code examples for implementation.
const videoedgeInstance = await videoedge.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 = videoedgeInstance.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 = videoedgeInstance.currentlyActiveSpeaker;
deviceList
Description
Get the list of all the input devices currently available in the system(Camera and Mic). The deviceList varibale is a object which has 2 arrays as below.
const deviceList = videoedgeInstance.deviceList;