This message was deleted.
# helpdesk
s
This message was deleted.
d
You seem to be using MediaStreamTrack events, which we have no control over. I would recommend listening to the Participant or Room level event for
TrackMuted
and
TrackUnmuted
s
So your suggestion is to connect to a room but only for the purpose to receive TrackMuted events from the localParticipant? Because in my current concept I’m not connected to a room at this point in time. It’s a local stage and not using a room to not produce network traffic and costs.
d
ah I see, before entering the room. In that case
localVideoTrack.on(TrackEvent.Muted, ...)
should work. can you enable debug logging and see what gets printed out when you call
localVideoTrack.mute()
?
s
after setting
setLogLevel(LogLevel.debug)
I can see the following:
Copy code
setting video track muted livekit-client.esm.mjs?dbe3:16812 
setting video track unmuted livekit-client.esm.mjs?dbe3:16812
nothing before that. but my code does not seem to be executed
Copy code
localVideoTrack.on(TrackEvent.Muted, () => {
       console.log("localVideoTrack muted")
  })
Are you able to reproduce that issue?
Maybe it’s better that I check the github issues and create a bug if there is none, instead of asking here.
d
Yes, a GH issue would be great. thanks for filing one!