streamlit-webrtc 0.60.1__tar.gz → 0.60.2__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.60.1 → streamlit_webrtc-0.60.2}/PKG-INFO +1 -1
  2. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/streamlit_webrtc/webrtc.py +4 -2
  3. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/.gitignore +0 -0
  4. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/LICENSE +0 -0
  5. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/README.md +0 -0
  6. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/pyproject.toml +0 -0
  7. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/streamlit_webrtc/__init__.py +0 -0
  8. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/streamlit_webrtc/_compat.py +0 -0
  9. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/streamlit_webrtc/component.py +0 -0
  10. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/streamlit_webrtc/components_callbacks.py +0 -0
  11. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/streamlit_webrtc/config.py +0 -0
  12. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/streamlit_webrtc/credentials.py +0 -0
  13. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/streamlit_webrtc/eventloop.py +0 -0
  14. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/streamlit_webrtc/factory.py +0 -0
  15. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/streamlit_webrtc/frontend/dist/assets/index-DV2u3ooX.js +0 -0
  16. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/streamlit_webrtc/frontend/dist/index.html +0 -0
  17. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/streamlit_webrtc/mix.py +0 -0
  18. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/streamlit_webrtc/models.py +0 -0
  19. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/streamlit_webrtc/process.py +0 -0
  20. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/streamlit_webrtc/py.typed +0 -0
  21. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/streamlit_webrtc/receive.py +0 -0
  22. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/streamlit_webrtc/relay.py +0 -0
  23. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/streamlit_webrtc/server.py +0 -0
  24. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/streamlit_webrtc/session_info.py +0 -0
  25. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/streamlit_webrtc/shutdown.py +0 -0
  26. {streamlit_webrtc-0.60.1 → streamlit_webrtc-0.60.2}/streamlit_webrtc/source.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: streamlit-webrtc
3
- Version: 0.60.1
3
+ Version: 0.60.2
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>
@@ -28,7 +28,7 @@ from aiortc.sdp import candidate_from_sdp
28
28
 
29
29
  from streamlit_webrtc.shutdown import SessionShutdownObserver
30
30
 
31
- from .eventloop import get_global_event_loop
31
+ from .eventloop import get_global_event_loop, loop_context
32
32
  from .models import (
33
33
  AudioFrameCallback,
34
34
  AudioProcessorBase,
@@ -383,9 +383,11 @@ class WebRtcWorker(Generic[VideoProcessorT, AudioProcessorT]):
383
383
  ) -> None:
384
384
  self._process_offer_thread: Union[threading.Thread, None] = None
385
385
  self.pc = RTCPeerConnection(rtc_configuration)
386
- self._remote_description_set: asyncio.Event = asyncio.Event()
387
386
  self._answer_queue: queue.Queue = queue.Queue()
388
387
 
388
+ with loop_context(get_global_event_loop()):
389
+ self._remote_description_set = asyncio.Event()
390
+
389
391
  self.mode = mode
390
392
  self.source_video_track = source_video_track
391
393
  self.source_audio_track = source_audio_track