streamlit-webrtc 0.51.2__tar.gz → 0.51.3__tar.gz

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.
Files changed (26) hide show
  1. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/PKG-INFO +1 -1
  2. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/pyproject.toml +2 -2
  3. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/streamlit_webrtc/component.py +10 -10
  4. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/.gitignore +0 -0
  5. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/LICENSE +0 -0
  6. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/README.md +0 -0
  7. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/streamlit_webrtc/__init__.py +0 -0
  8. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/streamlit_webrtc/_compat.py +0 -0
  9. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/streamlit_webrtc/components_callbacks.py +0 -0
  10. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/streamlit_webrtc/config.py +0 -0
  11. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/streamlit_webrtc/credentials.py +0 -0
  12. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/streamlit_webrtc/eventloop.py +0 -0
  13. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/streamlit_webrtc/factory.py +0 -0
  14. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/streamlit_webrtc/frontend/dist/assets/index-1ywg1u80.js +0 -0
  15. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/streamlit_webrtc/frontend/dist/index.html +0 -0
  16. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/streamlit_webrtc/mix.py +0 -0
  17. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/streamlit_webrtc/models.py +0 -0
  18. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/streamlit_webrtc/process.py +0 -0
  19. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/streamlit_webrtc/py.typed +0 -0
  20. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/streamlit_webrtc/receive.py +0 -0
  21. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/streamlit_webrtc/relay.py +0 -0
  22. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/streamlit_webrtc/server.py +0 -0
  23. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/streamlit_webrtc/session_info.py +0 -0
  24. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/streamlit_webrtc/shutdown.py +0 -0
  25. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/streamlit_webrtc/source.py +0 -0
  26. {streamlit_webrtc-0.51.2 → streamlit_webrtc-0.51.3}/streamlit_webrtc/webrtc.py +0 -0
@@ -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
  [project]
2
2
  name = "streamlit-webrtc"
3
- version = "0.51.2"
3
+ version = "0.51.3"
4
4
  description = "Real-time video and audio processing on Streamlit"
5
5
  authors = [{ name = "Yuichiro Tachibana (Tsuchiya)", email = "t.yic.yt@gmail.com" }]
6
6
  requires-python = ">=3.9,!=3.9.7" # 3.9.7 is excluded due to https://github.com/streamlit/streamlit/pull/5168
@@ -51,7 +51,7 @@ build-backend = "hatchling.build"
51
51
  extend-select = ["I"]
52
52
 
53
53
  [tool.bumpversion]
54
- version = "0.51.2"
54
+ version = "0.51.3"
55
55
  parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
56
56
  serialize = ["{major}.{minor}.{patch}"]
57
57
  search = "{current_version}"
@@ -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