From fa0263f0dd9e44680fcaa09af2dcb5efc0989daf Mon Sep 17 00:00:00 2001 From: Daniil Gusev Date: Fri, 14 Nov 2025 15:29:10 +0100 Subject: [PATCH 1/2] Fix BufferedMediaTrack.stop() --- getstream/video/rtc/track_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getstream/video/rtc/track_util.py b/getstream/video/rtc/track_util.py index 1ef61c79..59643e5f 100644 --- a/getstream/video/rtc/track_util.py +++ b/getstream/video/rtc/track_util.py @@ -1775,7 +1775,7 @@ def stop(self): self._ended = True self._buffered_frames = [] # Clear all buffered frames # Stop the underlying track if it has a stop method - if hasattr(self._track, "stop"): + if hasattr(self._track, "stop_audio"): try: self._track.stop_audio() except Exception as e: From 3f02b650c2b95bf638f3f896c2d540017b734771 Mon Sep 17 00:00:00 2001 From: Daniil Gusev Date: Fri, 14 Nov 2025 15:31:00 +0100 Subject: [PATCH 2/2] Fix BufferedMediaTrack.stop() --- getstream/video/rtc/track_util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/getstream/video/rtc/track_util.py b/getstream/video/rtc/track_util.py index 59643e5f..ced1ef8c 100644 --- a/getstream/video/rtc/track_util.py +++ b/getstream/video/rtc/track_util.py @@ -1775,9 +1775,9 @@ def stop(self): self._ended = True self._buffered_frames = [] # Clear all buffered frames # Stop the underlying track if it has a stop method - if hasattr(self._track, "stop_audio"): + if hasattr(self._track, "stop"): try: - self._track.stop_audio() + self._track.stop() except Exception as e: logger.error(f"Error stopping track: {e}")