Skip to content
Open
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
9 changes: 9 additions & 0 deletions backend/fastrtc/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,19 @@ def __init__(
self.server_rtc_configuration = self.convert_to_aiortc_format(
server_rtc_configuration
)

self.verbose = verbose

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert changes: self.verbose, self._ui shouldn't change

self._ui = self._generate_default_ui(ui_args)
self._ui.launch = self._wrap_gradio_launch(self._ui.launch)

def get_all_connections(self) -> list[str]:
"""Return all connection IDs from both API and UI WebRTC components."""
all_ids = list(self.connections.keys())
if self.webrtc_component:
all_ids += list(self.webrtc_component.connections.keys())
return all_ids


def mount(
self, app: FastAPI, path: str = "", tags: list[str | Enum] | None = None
) -> None:
Expand Down