streamlit-webrtc 0.51.2__py3-none-any.whl → 0.52.0__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.
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
7
  <meta name="theme-color" content="#000000" />
8
8
  <meta name="description" content="Streamlit WebRTC Component" />
9
- <script type="module" crossorigin src="./assets/index-1ywg1u80.js"></script>
9
+ <script type="module" crossorigin src="./assets/index-BQIqAyML.js"></script>
10
10
  </head>
11
11
  <body>
12
12
  <noscript>You need to enable JavaScript to run this app.</noscript>
@@ -6,7 +6,7 @@ import queue
6
6
  import threading
7
7
  from typing import Callable, Generic, Literal, Optional, Union, cast
8
8
 
9
- from aiortc import RTCPeerConnection, RTCSessionDescription
9
+ from aiortc import RTCConfiguration, RTCPeerConnection, RTCSessionDescription
10
10
  from aiortc.contrib.media import MediaPlayer, MediaRecorder, MediaRelay
11
11
  from aiortc.mediastreams import MediaStreamTrack
12
12
 
@@ -339,6 +339,7 @@ class WebRtcWorker(Generic[VideoProcessorT, AudioProcessorT]):
339
339
  def __init__(
340
340
  self,
341
341
  mode: WebRtcMode,
342
+ rtc_configuration: Optional[RTCConfiguration],
342
343
  source_video_track: Optional[MediaStreamTrack],
343
344
  source_audio_track: Optional[MediaStreamTrack],
344
345
  player_factory: Optional[MediaPlayerFactory],
@@ -359,7 +360,7 @@ class WebRtcWorker(Generic[VideoProcessorT, AudioProcessorT]):
359
360
  sendback_audio: bool,
360
361
  ) -> None:
361
362
  self._process_offer_thread: Union[threading.Thread, None] = None
362
- self.pc = RTCPeerConnection()
363
+ self.pc = RTCPeerConnection(rtc_configuration)
363
364
  self._answer_queue: queue.Queue = queue.Queue()
364
365
 
365
366
  self.mode = mode
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: streamlit-webrtc
3
- Version: 0.51.2
3
+ Version: 0.52.0
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,9 +1,9 @@
1
- streamlit_webrtc/__init__.py,sha256=4ZU3c3Ov634jPAJCFRAV_pmKi0LWDOrESL48q4m70yY,2439
1
+ streamlit_webrtc/__init__.py,sha256=lZzJSUXeHE4Qt3dwSeQ01Hcrf4hUR3f4_rB7Qqyb85g,2397
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=122gn_wXi9uA-uI-4svI5dbCtA7UX3Xi_nxbKL-T270,23865
4
4
  streamlit_webrtc/components_callbacks.py,sha256=tdrj2TlV8qcexFEdjm4PVkz8JwHffo4A8imoXOtjNHA,2401
5
- streamlit_webrtc/config.py,sha256=YaOQtsE66XkoN5yGGLvkcgtugC6gs2K5M-igqSh7-g8,4137
6
- streamlit_webrtc/credentials.py,sha256=B5PXAdMX65m0UGHuUVtzuRqAaFbaoa7WiyByNgRNWvU,2741
5
+ streamlit_webrtc/config.py,sha256=yKFIVjIoX2F62_G2qcDrNYm2Qe_qx1E9E0YqAnAibMo,5544
6
+ streamlit_webrtc/credentials.py,sha256=XUSAsKfx50VZstknG99dFq_iBYGbutsvHiGIetyvWKM,3725
7
7
  streamlit_webrtc/eventloop.py,sha256=AFmxGlRRxVdl0cTS9pKpRZR2Mnq6v6DgudVZZ425IVw,1333
8
8
  streamlit_webrtc/factory.py,sha256=T35kCwNU8Vm4KL6KJ5HbNVtaouNw13Ilew49XSnm6X8,6820
9
9
  streamlit_webrtc/mix.py,sha256=Uh9gJviP3VLxwBQ-i3RftJ8GQ5qDPGqJKgm2M-vQYo4,8775
@@ -16,10 +16,10 @@ streamlit_webrtc/server.py,sha256=5o9E2MRIPoS18lfGPJkyhbd23RWyTwblNVVuAA2kKrA,14
16
16
  streamlit_webrtc/session_info.py,sha256=pg_2RFexR18UfwpZT5ENcPfedEiWuAxBuXc2RRuFCaE,2341
17
17
  streamlit_webrtc/shutdown.py,sha256=rbWMhOIrbOBZDlqqBTzCfs4MuHQ0UEhljkNvvXoeTz0,2171
18
18
  streamlit_webrtc/source.py,sha256=haPqMZ50Xh8tg7Z1yN8Frfk8v7D3oOuKteaD59asbzs,2263
19
- streamlit_webrtc/webrtc.py,sha256=LXsvwpqZw6up5DU2FoJkiM5yfd50Vb988ormK92xfxM,27188
20
- streamlit_webrtc/frontend/dist/index.html,sha256=1iOx-PsDxdqWKzx6SFPeQH17DsdM8NJSkfOm-XjFl5Q,527
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,,
19
+ streamlit_webrtc/webrtc.py,sha256=UBWoa2-u3X3tAaIj3NSUY9Thptk9CH50qeQS-tRY2tY,27278
20
+ streamlit_webrtc/frontend/dist/index.html,sha256=7ci2rvPXF59UQ3eDGjU9EVj3BU9bWt1YGMR-FCDEqNU,527
21
+ streamlit_webrtc/frontend/dist/assets/index-BQIqAyML.js,sha256=JPa9HUy0Go7pXXHTL3IZzHLKQV0wJtRaXC9qn-aiKFU,582514
22
+ streamlit_webrtc-0.52.0.dist-info/METADATA,sha256=odUBx42eJdOrYAQGKVgrqG3tQhEyT5gn5Um9eMZ9p24,18640
23
+ streamlit_webrtc-0.52.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
24
+ streamlit_webrtc-0.52.0.dist-info/licenses/LICENSE,sha256=pwccNHVA7r4rYofGlMU10aKEU90GLUlQr8uY80PR0NQ,1081
25
+ streamlit_webrtc-0.52.0.dist-info/RECORD,,