activeSpeaker
activeSpeaker event is emitted whenever a participant is speaking in the meeting
This event is emitted to all other participants in the meeting when a participants speaks in the meeting.
JavaScript
meeting.on("activeSpeaker", function(speakerInfo) {
console.log("activeSpeaker", speakerInfo);
});
Properties
speakerInfo is an object that contains the following properties:
| Properties | Description | Type |
|---|---|---|
| streamId | streamId to which the event belongs to | string |
| meetingSessionId | id of the current meeting session | string |
| name | username of the user who is speaking | string |
| roomId | id of the current meeting room | string |
| participantSessionId | participant session id of the user who is speaking | string |
| volumeLevel | volume level of the speaker, value is between -128 to 0, with -128 being the minimum and 0 being the maximum | number |