Hi everyone!
Does anyone know what could be the reason for not getting any events from ActiveSpeakerObserver instance?
I’ve initialized the observer on the top level like this:
const observer = await router.createActiveSpeakerObserver({interval: 500})
observer.on('dominantspeaker', (payload) => {
console.log('event payload', payload)
})
For debugging I’ve added logs after lines 19 and 20 in mediasoup/ActiveSpeakerObserver.js at v3 · versatica/mediasoup · GitHub and I see that handleWorkerNotifications is called, but this.channel.on never fires its callback when people start and stop speaking.
Both audio and video is sent and received correctly between the participating peers, so audio data definitely flows the way it should.