streamlit-webrtc 0.51.3__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.
- streamlit_webrtc/__init__.py +0 -2
- streamlit_webrtc/component.py +19 -74
- streamlit_webrtc/config.py +46 -1
- streamlit_webrtc/credentials.py +29 -2
- streamlit_webrtc/frontend/dist/assets/{index-1ywg1u80.js → index-BQIqAyML.js} +28 -28
- streamlit_webrtc/frontend/dist/index.html +1 -1
- streamlit_webrtc/webrtc.py +3 -2
- {streamlit_webrtc-0.51.3.dist-info → streamlit_webrtc-0.52.0.dist-info}/METADATA +1 -1
- {streamlit_webrtc-0.51.3.dist-info → streamlit_webrtc-0.52.0.dist-info}/RECORD +11 -11
- {streamlit_webrtc-0.51.3.dist-info → streamlit_webrtc-0.52.0.dist-info}/WHEEL +0 -0
- {streamlit_webrtc-0.51.3.dist-info → streamlit_webrtc-0.52.0.dist-info}/licenses/LICENSE +0 -0
@@ -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-
|
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>
|
streamlit_webrtc/webrtc.py
CHANGED
@@ -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.
|
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=
|
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=
|
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=
|
6
|
-
streamlit_webrtc/credentials.py,sha256=
|
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=
|
20
|
-
streamlit_webrtc/frontend/dist/index.html,sha256=
|
21
|
-
streamlit_webrtc/frontend/dist/assets/index-
|
22
|
-
streamlit_webrtc-0.
|
23
|
-
streamlit_webrtc-0.
|
24
|
-
streamlit_webrtc-0.
|
25
|
-
streamlit_webrtc-0.
|
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,,
|
File without changes
|
File without changes
|