From f05803597819ae10d6b31b182848266063e51152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20R=C4=85czy?= Date: Thu, 30 Nov 2023 17:04:51 -0800 Subject: [PATCH] Default value for buffered --- teleoprtc/stream.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teleoprtc/stream.py b/teleoprtc/stream.py index ce5beb0..a928c14 100644 --- a/teleoprtc/stream.py +++ b/teleoprtc/stream.py @@ -161,7 +161,7 @@ class WebRTCBaseStream(abc.ABC): def has_messaging_channel(self) -> bool: return self.messaging_channel is not None - def get_incoming_video_track(self, camera_type: str, buffered: bool) -> aiortc.MediaStreamTrack: + def get_incoming_video_track(self, camera_type: str, buffered: bool = False) -> aiortc.MediaStreamTrack: assert camera_type in self.incoming_camera_tracks, "Video tracks are not enabled on this stream" assert self.is_started, "Stream must be started" @@ -169,7 +169,7 @@ class WebRTCBaseStream(abc.ABC): relay_track = self.media_relay.subscribe(track, buffered=buffered) return relay_track - def get_incoming_audio_track(self, buffered: bool) -> aiortc.MediaStreamTrack: + def get_incoming_audio_track(self, buffered: bool = False) -> aiortc.MediaStreamTrack: assert len(self.incoming_audio_tracks) > 0, "Audio tracks are not enabled on this stream" assert self.is_started, "Stream must be started"