From 4f548918249a56a8efeb794764b18a0e0d836825 Mon Sep 17 00:00:00 2001 From: dbrockmann Date: Thu, 5 Mar 2026 22:49:43 +0000 Subject: [PATCH] feat: add share_screen and stop_sharing to client --- client/joinly_client/client.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/client/joinly_client/client.py b/client/joinly_client/client.py index f7613e6c..d64cab78 100644 --- a/client/joinly_client/client.py +++ b/client/joinly_client/client.py @@ -410,6 +410,29 @@ async def send_chat_message(self, message: str) -> None: arguments={"message": message}, ) + async def share_screen(self, url: str) -> None: + """Start sharing screen in the meeting. + + Args: + url (str): The URL to display while sharing. + """ + if not self.joined: + msg = "Not joined to a meeting" + raise RuntimeError(msg) + + await self.client.call_tool( + "share_screen", + arguments={"url": url}, + ) + + async def stop_sharing(self) -> None: + """Stop sharing screen in the meeting.""" + if not self.joined: + msg = "Not joined to a meeting" + raise RuntimeError(msg) + + await self.client.call_tool("stop_sharing") + async def mute(self) -> None: """Mute the participant in the meeting.""" if not self.joined: