streamlit-webrtc 0.53.2__py3-none-any.whl → 0.53.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.
@@ -564,18 +564,22 @@ def webrtc_streamer(
564
564
  if component_value:
565
565
  sdp_offer = component_value.get("sdpOffer")
566
566
 
567
- if webrtc_worker and not context.state.playing and not context.state.signalling:
567
+ if not context.state.playing and not context.state.signalling:
568
568
  LOGGER.debug(
569
- "Unset the worker because the frontend state is "
569
+ "Unset the worker and the internal states because the frontend state is "
570
570
  'neither playing nor signalling (key="%s").',
571
571
  key,
572
572
  )
573
- webrtc_worker.stop()
574
- context._set_worker(None)
575
- webrtc_worker = None
576
573
 
577
- # Rerun to unset the SDP answer from the frontend args
578
- rerun()
574
+ context._frontend_rtc_configuration = None
575
+
576
+ if webrtc_worker:
577
+ webrtc_worker.stop()
578
+ context._set_worker(None)
579
+ webrtc_worker = None
580
+
581
+ # Rerun to unset the SDP answer from the frontend args
582
+ rerun()
579
583
 
580
584
  if webrtc_worker:
581
585
  if video_frame_callback or queued_video_frames_callback or on_video_ended:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: streamlit-webrtc
3
- Version: 0.53.2
3
+ Version: 0.53.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=jMWwXoQ9hVyYXPD4Vrps7MyiR9goyC-n7LtkZNFBOxU,2273
2
2
  streamlit_webrtc/_compat.py,sha256=43RUwFoGdRBq8EkOdf6inWkl-qogs5lF8tc-sYrVd1s,4128
3
- streamlit_webrtc/component.py,sha256=k9O3CwqUddbIU61gVr9gjhjvfspi_F8jm_r-RTC1-W4,26003
3
+ streamlit_webrtc/component.py,sha256=t5mGw0mGjx0RoXm1vbLYR7hC00mLBsxys6mYTaf1S1s,26108
4
4
  streamlit_webrtc/components_callbacks.py,sha256=tdrj2TlV8qcexFEdjm4PVkz8JwHffo4A8imoXOtjNHA,2401
5
5
  streamlit_webrtc/config.py,sha256=yKFIVjIoX2F62_G2qcDrNYm2Qe_qx1E9E0YqAnAibMo,5544
6
6
  streamlit_webrtc/credentials.py,sha256=XUSAsKfx50VZstknG99dFq_iBYGbutsvHiGIetyvWKM,3725
@@ -19,7 +19,7 @@ streamlit_webrtc/source.py,sha256=haPqMZ50Xh8tg7Z1yN8Frfk8v7D3oOuKteaD59asbzs,22
19
19
  streamlit_webrtc/webrtc.py,sha256=UBWoa2-u3X3tAaIj3NSUY9Thptk9CH50qeQS-tRY2tY,27278
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.53.2.dist-info/METADATA,sha256=hRpD7I0HvgGNh3NKXbO5ywuQqCyRulaWLAY4Iaw-CLk,18640
23
- streamlit_webrtc-0.53.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
24
- streamlit_webrtc-0.53.2.dist-info/licenses/LICENSE,sha256=pwccNHVA7r4rYofGlMU10aKEU90GLUlQr8uY80PR0NQ,1081
25
- streamlit_webrtc-0.53.2.dist-info/RECORD,,
22
+ streamlit_webrtc-0.53.3.dist-info/METADATA,sha256=AC0mjfCjHRynQYlX_5qaDwsDC-QxJr7lOCl-22aWNak,18640
23
+ streamlit_webrtc-0.53.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
24
+ streamlit_webrtc-0.53.3.dist-info/licenses/LICENSE,sha256=pwccNHVA7r4rYofGlMU10aKEU90GLUlQr8uY80PR0NQ,1081
25
+ streamlit_webrtc-0.53.3.dist-info/RECORD,,