TrackMuted and TrackUnmuted does not work
I want other participants to know when the participant mutes the microphone.
I started with the idea that I could use TrackMuted and TrackUnmuted from Room.
I called the code below when the participant muted the microphone.
public void MicrophoneMute(bool isMute)
{
foreach (var track in room.LocalParticipant.Tracks.Values)
{
if (track.Track.Kind == TrackKind.KindAudio)
track.Track.SetMute(isMute);
}
}
I saw that SetMute on ILocalTrack sends a request and mutes audioSource.
The sound is normally Mute, but no event occurs.
No events are coming to OnEventReceived in the Room.
Is there something I'm thinking wrong?
i have the exact same situation. I'm thinking of working around it by sending rpc's to notify others after muting (locally muting as that is what is happening). but haven't tested that yet.
I have this problem too. It seems to be a bug on the FFI event: the client doesn't send it to the server, so the remote users don't receive the event and the OnTrackMuted/Unmuted callbaks aren't triggered
Thank you for reporting this—I am going to investigate what is happening.