Issue with getting participants of a call in PSI Bot
Hi, I want to get all the participants of the meeting that the bot is in. But this line of code which is already present in MediaFrameSourceComponent.cs in Received() method. Looks like, the GetParticipantFromMSI() is returning null. The code I'm referring is:
var participant = CallHandler.GetParticipantFromMSI(this.callHandler.Call, buffer.ActiveSpeakerId);
Please verify that the buffer.ActiveSpeakerId is not uint.MaxValue when trying to get the participant using that method.
This will be the case, when nobody is currently the dominant speaker, which happens quite quickly after a short period of silence in the call.
@InDieTasten ActiveSpeakerId changes for every speaker. It appears like '201' or '602'. So ig it is not uint.MaxValue
I'm not familiar with the PSI bot. I would add logging that displays all participants using call.Participants collection and the respective Audio Socket IDs for each of them, whenever there is a change to the participant collection. Then it should become more clear, if there is an issue with the GetParticpantFromMSI method, or if something else in your setup is causing trouble.
@InDieTasten Alright, thanks for the information🙂. I'll keep the issue open for any further responses, in case someone can provide any leads as to why this is occurring