Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions client/joinly_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down