streamlit-webrtc 0.51.2__py3-none-any.whl → 0.51.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41,7 +41,10 @@ from .config import (
41
41
  Translations,
42
42
  VideoHTMLAttributes,
43
43
  )
44
- from .credentials import get_hf_ice_servers, get_twilio_ice_servers
44
+ from .credentials import (
45
+ get_hf_ice_servers,
46
+ get_twilio_ice_servers,
47
+ )
45
48
  from .session_info import get_script_run_count, get_this_session_info
46
49
  from .webrtc import (
47
50
  AudioProcessorFactory,
@@ -493,15 +496,12 @@ def webrtc_streamer(
493
496
  LOGGER.error("Failed to get TURN credentials from Twilio: %s", e)
494
497
  else:
495
498
  LOGGER.info("Use STUN server from Google.")
496
- # TODO: Check network reachability and unset ice_servers if failed
497
- ice_servers = [{"urls": "stun:stun.l.google.com:19302"}]
498
- if ice_servers:
499
- if context._rtc_configuration is None:
500
- context._rtc_configuration = {}
501
- LOGGER.info("Successfully got STUN server from Google.")
502
- context._rtc_configuration["iceServers"] = [
503
- {"urls": "stun:stun.l.google.com:19302"}
504
- ]
499
+ if context._rtc_configuration is None:
500
+ context._rtc_configuration = {}
501
+ LOGGER.info("Successfully got STUN server from Google.")
502
+ context._rtc_configuration["iceServers"] = [
503
+ {"urls": "stun:stun.l.google.com:19302"}
504
+ ]
505
505
 
506
506
  webrtc_worker = context._get_worker()
507
507
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: streamlit-webrtc
3
- Version: 0.51.2
3
+ Version: 0.51.3
4
4
  Summary: Real-time video and audio processing on Streamlit
5
5
  Project-URL: Repository, https://github.com/whitphx/streamlit-webrtc
6
6
  Author-email: "Yuichiro Tachibana (Tsuchiya)" <t.yic.yt@gmail.com>
@@ -1,6 +1,6 @@
1
1
  streamlit_webrtc/__init__.py,sha256=4ZU3c3Ov634jPAJCFRAV_pmKi0LWDOrESL48q4m70yY,2439
2
2
  streamlit_webrtc/_compat.py,sha256=43RUwFoGdRBq8EkOdf6inWkl-qogs5lF8tc-sYrVd1s,4128
3
- streamlit_webrtc/component.py,sha256=vEKBBVoFMc7IDivZ3m2V2Oly2zkT_FvkdRIXoOmjvoY,26748
3
+ streamlit_webrtc/component.py,sha256=yItOiwWwsJTOR83-i-KJnCwoKW34k6luRlpC6IhoMo0,26561
4
4
  streamlit_webrtc/components_callbacks.py,sha256=tdrj2TlV8qcexFEdjm4PVkz8JwHffo4A8imoXOtjNHA,2401
5
5
  streamlit_webrtc/config.py,sha256=YaOQtsE66XkoN5yGGLvkcgtugC6gs2K5M-igqSh7-g8,4137
6
6
  streamlit_webrtc/credentials.py,sha256=B5PXAdMX65m0UGHuUVtzuRqAaFbaoa7WiyByNgRNWvU,2741
@@ -19,7 +19,7 @@ streamlit_webrtc/source.py,sha256=haPqMZ50Xh8tg7Z1yN8Frfk8v7D3oOuKteaD59asbzs,22
19
19
  streamlit_webrtc/webrtc.py,sha256=LXsvwpqZw6up5DU2FoJkiM5yfd50Vb988ormK92xfxM,27188
20
20
  streamlit_webrtc/frontend/dist/index.html,sha256=1iOx-PsDxdqWKzx6SFPeQH17DsdM8NJSkfOm-XjFl5Q,527
21
21
  streamlit_webrtc/frontend/dist/assets/index-1ywg1u80.js,sha256=6DS5LiYVHfQac1QqoUOdw2ALfo86UUrpvdn4Cdz-GaY,582648
22
- streamlit_webrtc-0.51.2.dist-info/METADATA,sha256=EsAMX1U64Z7Nw0std4dcibX_lcgpgREbO0PA-hhIVRQ,18640
23
- streamlit_webrtc-0.51.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
24
- streamlit_webrtc-0.51.2.dist-info/licenses/LICENSE,sha256=pwccNHVA7r4rYofGlMU10aKEU90GLUlQr8uY80PR0NQ,1081
25
- streamlit_webrtc-0.51.2.dist-info/RECORD,,
22
+ streamlit_webrtc-0.51.3.dist-info/METADATA,sha256=W4dFoTE1srYq9KBoJhEzjy401x3oMbAMsvZYf-80vnw,18640
23
+ streamlit_webrtc-0.51.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
24
+ streamlit_webrtc-0.51.3.dist-info/licenses/LICENSE,sha256=pwccNHVA7r4rYofGlMU10aKEU90GLUlQr8uY80PR0NQ,1081
25
+ streamlit_webrtc-0.51.3.dist-info/RECORD,,