useActivePeers
The useActivePeers
hook returns the last most active "N" number of peers i.e. activePeerIds
& dominantSpeakerId
.
Description | Type |
---|---|
last most active n number of peers. | string[] |
last most active peer. | string |
Example Usage
const {
activePeerIds,
dominantSpeakerId,
} = useActivePeers();
![architecture](/docs/_next/image?url=%2Fdocs%2Fimages%2FRecording_ActiveSpeaker.png&w=2048&q=100)