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
    }
]
Audio/Video Infrastructure designed for the developers to empower them ship simple yet powerful Audio/Video Apps.
support
company
Copyright © 2022 Graphene 01, Inc. All Rights Reserved.