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
3 changes: 3 additions & 0 deletions livekit-agents/livekit/agents/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ async def connect(
encryption: rtc.E2EEOptions | None = None,
auto_subscribe: AutoSubscribe = AutoSubscribe.SUBSCRIBE_ALL,
rtc_config: rtc.RtcConfiguration | None = None,
single_peer_connection: bool | None = None,
# deprecated
e2ee: rtc.E2EEOptions | None = None,
) -> None:
Expand All @@ -517,6 +518,7 @@ async def connect(
encryption: End-to-end encryption options. If provided, the Agent will utilize end-to-end encryption. Note: clients will also need to handle E2EE.
auto_subscribe: Whether to automatically subscribe to tracks. Default is AutoSubscribe.SUBSCRIBE_ALL.
rtc_config: Custom RTC configuration to use when connecting to the room.
single_peer_connection: Use a single peer connection for both publish and subscribe. When None, uses the default (False).
""" # noqa: E501
async with self._lock:
if self._connected:
Expand All @@ -527,6 +529,7 @@ async def connect(
encryption=encryption,
auto_subscribe=auto_subscribe == AutoSubscribe.SUBSCRIBE_ALL,
rtc_config=rtc_config,
single_peer_connection=single_peer_connection,
)

await self._room.connect(self._info.url, self._info.token, options=room_options)
Expand Down
Loading