client-sdk-unity icon indicating copy to clipboard operation
client-sdk-unity copied to clipboard

TrackMuted and TrackUnmuted does not work

Open Yoochang-VIRNECT opened this issue 4 months ago • 3 comments

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?

Yoochang-VIRNECT avatar Sep 04 '25 06:09 Yoochang-VIRNECT

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.

mmmmmapplepie avatar Sep 10 '25 02:09 mmmmmapplepie

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

giovanni-cattani avatar Nov 04 '25 11:11 giovanni-cattani

Thank you for reporting this—I am going to investigate what is happening.

ladvoc avatar Nov 04 '25 11:11 ladvoc