diff libervia/web/pages/calls/_browser/webrtc.py @ 1563:e3449beac8d8

browser (calls): Add clear search + formatting
author Goffi <goffi@goffi.org>
date Thu, 17 Aug 2023 16:23:01 +0200
parents 7dbb131bbb9e
children bd3c880f4a47
line wrap: on
line diff
--- a/libervia/web/pages/calls/_browser/webrtc.py	Thu Aug 17 14:59:01 2023 +0200
+++ b/libervia/web/pages/calls/_browser/webrtc.py	Thu Aug 17 16:23:01 2023 +0200
@@ -199,7 +199,9 @@
             if self.on_connection_established_cb is not None:
                 self.on_connection_established_cb()
         elif state == "failed":
-            log.error("ICE connection failed. Check network connectivity and ICE configurations.")
+            log.error(
+                "ICE connection failed. Check network connectivity and ICE configurations."
+            )
         elif state == "disconnected":
             log.warning("ICE connection was disconnected.")
             if self.on_connection_lost_cb is not None:
@@ -267,8 +269,7 @@
         peer_connection.addEventListener("track", self.on_track)
         peer_connection.addEventListener("negotiationneeded", self.on_negotiation_needed)
         peer_connection.addEventListener(
-            "iceconnectionstatechange",
-            self.on_ice_connection_state_change
+            "iceconnectionstatechange", self.on_ice_connection_state_change
         )
         peer_connection.addEventListener("icecandidate", self.on_ice_candidate)
         peer_connection.addEventListener("icecandidateerror", self.on_ice_candidate_error)