From c476a3070515620b48d100175b57f310e5dfd4d7 Mon Sep 17 00:00:00 2001 From: Parker Wahle Date: Tue, 10 Sep 2024 08:35:02 -0400 Subject: [PATCH] apply formatting --- pydroid_ipcam/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pydroid_ipcam/__init__.py b/pydroid_ipcam/__init__.py index 635fe79..d0a2d8f 100644 --- a/pydroid_ipcam/__init__.py +++ b/pydroid_ipcam/__init__.py @@ -63,7 +63,11 @@ def audio_opus_url(self) -> str: """Return url that LibOPUS audio can be streamed from.""" return f"{self.base_url}/audio.opus" - def get_rtsp_url(self, video_codec: Literal["jpeg", "h264"] = "h264", audio_codec: Literal["ulaw", "alaw", "pcm", "opus", "aac"] = "opus") -> str: + def get_rtsp_url( + self, + video_codec: Literal["jpeg", "h264"] = "h264", + audio_codec: Literal["ulaw", "alaw", "pcm", "opus", "aac"] = "opus", + ) -> str: """Return the RTSP URL for a given pair of video & audio codecs, using the developer-recommended h264 & opus if no arguments are supplied.""" rtsp_protocol = "rtsps" if self._ssl else "rtsp" return f"{rtsp_protocol}://{self._host}:{self._port}/{video_codec}_{audio_codec}.sdp"