Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On agent disconnect and reconnect, track_subscribed event reports track.muted as True even when muted #207

Open
Tryptophan opened this issue Jun 10, 2024 · 0 comments
Assignees

Comments

@Tryptophan
Copy link

I've found a bug with agents where on disconnecting/reconnecting due to temporary network failures then subscribing to a participant track the track reports as not muted even when it is muted. To reproduce use the following code and steps.

Steps to reproduce:

  1. Join a room with a participant and publish an audio stream
  2. Mute the audio stream
  3. Manually disconnect internet connection (where agent is hosted) and reconnect when livekit agent logs disconnect
  4. On re-connection of the agent the following code will log even though the participant is muted
def on_track_subscribed(
        track: rtc.Track,
        pub: rtc.RemoteTrackPublication,
        remote_participant: rtc.participant.RemoteParticipant,
    ):
        if track.kind == rtc.TrackKind.KIND_AUDIO and not track.muted:
            logging.info("this should not log when participant is muted")

job.room.on("track_subscribed", on_track_subscribed)
@theomonnom theomonnom transferred this issue from livekit/agents Jun 11, 2024
@theomonnom theomonnom self-assigned this Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants