Hi Team,
Can you please confirm if the activeSpeakerObserver
in the current mediasoup version (3.16.0) works as expected?
Here’s how I’m initializing and using it on my side:
this.activeSpeakerObserver = await this.router.createActiveSpeakerObserver();
this.activeSpeakerObserver.on('dominantspeaker', (dominantSpeaker) => {
log.debug('activeSpeakerObserver "dominantspeaker" event', dominantSpeaker.producer.id);
});
When producing audio, I add the producer’s ID to the observer like this:
this.activeSpeakerObserver.addProducer(producerId);
However, for some reason, the 'dominantspeaker'
event is never triggered.
Maybe something missing in this commit.
Has anyone experienced this? Any advice or pointers would be appreciated.
Thanks!