python-sdks icon indicating copy to clipboard operation
python-sdks copied to clipboard

Blank "active_speakers_changed" events are fired even when there are no changes

Open avivace opened this issue 2 years ago • 1 comments

I'm not sure if this is the right repository but it's happening with the Python RTC sdk (I don't know if it doesn't happen with other SDKs).

I have a very simple setup in which I connect to a room with the RTC library. I then start watching for active_speakers_changed room events with a simple:

@room.on("active_speakers_changed")
def on_active_speakers_changed(speakers: list[rtc.Participant]):
   [...]

When a speaker starts speaking I successfully receive the events but after this I usually get other events of the same time when really nothing as changed, in fact the reported list of partecipants who are active speakers doesn't change. Am I missing something? Are there other metadata sent over which can change and I'm not looking at?

avivace avatar Jan 18 '24 13:01 avivace

hi, could you print out a sequence of these events? it'd be helpful to see the pattern.

davidzhao avatar Jan 20 '24 17:01 davidzhao