From 4dbc9de5c76bbd9b2004ed7716b990bfe226ac7c Mon Sep 17 00:00:00 2001 From: Hamdan Anwar Sayeed <96612374+s-hamdananwar@users.noreply.github.com> Date: Wed, 11 Dec 2024 16:12:53 -0600 Subject: [PATCH] fixed unpublish track error by adding stop_on_unpublish value --- livekit-rtc/livekit/rtc/participant.py | 1 + 1 file changed, 1 insertion(+) diff --git a/livekit-rtc/livekit/rtc/participant.py b/livekit-rtc/livekit/rtc/participant.py index 24e83d51..351182b8 100644 --- a/livekit-rtc/livekit/rtc/participant.py +++ b/livekit-rtc/livekit/rtc/participant.py @@ -565,6 +565,7 @@ async def unpublish_track(self, track_sid: str) -> None: req = proto_ffi.FfiRequest() req.unpublish_track.local_participant_handle = self._ffi_handle.handle req.unpublish_track.track_sid = track_sid + req.unpublish_track.stop_on_unpublish = True queue = self._room_queue.subscribe() try: