Peers Methods
Get Peers
In order to get access to the peers in a meeting room you can call the getPeers()
method.
huddleClient.getPeers();
// Output:
[
{
peerId: "peerId-xyz";
role: "host";
displayName: "Guest";
avatarUrl: "https://xyz.com/image.png";
joinStatus: "joined";
isHandRaised: false;
}
]
Get Peer Tracks
In order to get access to a particular peer's audio/video tracks call the getPeerTracks()
method.
// Usage
huddleClient.getPeerTracks(peerId);
// Example
huddleClient.getPeerTracks("peerId-xyz");
// Output:
[
{
audio: MediaStreamTrack,
video: MediaStreamTrack
}
]