streamlit-webrtc 0.47.6__py3-none-any.whl → 0.47.7__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 +1 -2
- streamlit_webrtc/components_callbacks.py +7 -1
- streamlit_webrtc/factory.py +6 -12
- streamlit_webrtc/frontend/build/asset-manifest.json +3 -3
- streamlit_webrtc/frontend/build/index.html +1 -1
- streamlit_webrtc/frontend/build/static/js/main.9c17b353.js +3 -0
- streamlit_webrtc/frontend/build/static/js/main.9c17b353.js.map +1 -0
- streamlit_webrtc/mix.py +3 -1
- {streamlit_webrtc-0.47.6.dist-info → streamlit_webrtc-0.47.7.dist-info}/METADATA +2 -1
- {streamlit_webrtc-0.47.6.dist-info → streamlit_webrtc-0.47.7.dist-info}/RECORD +13 -13
- streamlit_webrtc/frontend/build/static/js/main.6951f096.js +0 -3
- streamlit_webrtc/frontend/build/static/js/main.6951f096.js.map +0 -1
- /streamlit_webrtc/frontend/build/static/js/{main.6951f096.js.LICENSE.txt → main.9c17b353.js.LICENSE.txt} +0 -0
- {streamlit_webrtc-0.47.6.dist-info → streamlit_webrtc-0.47.7.dist-info}/LICENSE +0 -0
- {streamlit_webrtc-0.47.6.dist-info → streamlit_webrtc-0.47.7.dist-info}/WHEEL +0 -0
streamlit_webrtc/__init__.py
CHANGED
@@ -25,8 +25,14 @@ Here's the result when you call Streamlit.setComponentValue():
|
|
25
25
|
Script begins...
|
26
26
|
|
27
27
|
"""
|
28
|
+
|
28
29
|
from streamlit import session_state as _state
|
29
|
-
|
30
|
+
|
31
|
+
try:
|
32
|
+
# Streamlit >= 1.34.0 (Ref: https://github.com/streamlit/streamlit/pull/8457)
|
33
|
+
from streamlit.components.v1 import custom_component as _components # type: ignore
|
34
|
+
except ImportError:
|
35
|
+
from streamlit.components.v1 import components as _components # type: ignore
|
30
36
|
|
31
37
|
|
32
38
|
def _patch_register_widget(register_widget):
|
streamlit_webrtc/factory.py
CHANGED
@@ -63,8 +63,7 @@ def create_process_track(
|
|
63
63
|
frame_callback: Optional[FrameCallback] = None,
|
64
64
|
queued_frames_callback: Optional[QueuedVideoFramesCallback] = None,
|
65
65
|
on_ended: Optional[MediaEndedCallback] = None,
|
66
|
-
) -> AudioProcessTrack[AudioProcessorT]:
|
67
|
-
...
|
66
|
+
) -> AudioProcessTrack[AudioProcessorT]: ...
|
68
67
|
|
69
68
|
|
70
69
|
@overload
|
@@ -76,8 +75,7 @@ def create_process_track(
|
|
76
75
|
frame_callback: Optional[FrameCallback] = None,
|
77
76
|
queued_frames_callback: Optional[QueuedVideoFramesCallback] = None,
|
78
77
|
on_ended: Optional[MediaEndedCallback] = None,
|
79
|
-
) -> AsyncAudioProcessTrack[AudioProcessorT]:
|
80
|
-
...
|
78
|
+
) -> AsyncAudioProcessTrack[AudioProcessorT]: ...
|
81
79
|
|
82
80
|
|
83
81
|
@overload
|
@@ -89,8 +87,7 @@ def create_process_track(
|
|
89
87
|
frame_callback: Optional[FrameCallback] = None,
|
90
88
|
queued_frames_callback: Optional[QueuedVideoFramesCallback] = None,
|
91
89
|
on_ended: Optional[MediaEndedCallback] = None,
|
92
|
-
) -> VideoProcessTrack[VideoProcessorT]:
|
93
|
-
...
|
90
|
+
) -> VideoProcessTrack[VideoProcessorT]: ...
|
94
91
|
|
95
92
|
|
96
93
|
@overload
|
@@ -102,8 +99,7 @@ def create_process_track(
|
|
102
99
|
frame_callback: Optional[FrameCallback] = None,
|
103
100
|
queued_frames_callback: Optional[QueuedVideoFramesCallback] = None,
|
104
101
|
on_ended: Optional[MediaEndedCallback] = None,
|
105
|
-
) -> AsyncVideoProcessTrack[VideoProcessorT]:
|
106
|
-
...
|
102
|
+
) -> AsyncVideoProcessTrack[VideoProcessorT]: ...
|
107
103
|
|
108
104
|
|
109
105
|
# Overloads for the cases where the processor_factory is NOT specified
|
@@ -116,8 +112,7 @@ def create_process_track(
|
|
116
112
|
processor_factory: Literal[None] = None,
|
117
113
|
queued_frames_callback: Optional[QueuedVideoFramesCallback] = None,
|
118
114
|
on_ended: Optional[MediaEndedCallback] = None,
|
119
|
-
) -> MediaProcessTrack[CallbackAttachableProcessor[FrameT], FrameT]:
|
120
|
-
...
|
115
|
+
) -> MediaProcessTrack[CallbackAttachableProcessor[FrameT], FrameT]: ...
|
121
116
|
|
122
117
|
|
123
118
|
@overload
|
@@ -129,8 +124,7 @@ def create_process_track(
|
|
129
124
|
async_processing: Literal[True] = True,
|
130
125
|
queued_frames_callback: Optional[QueuedVideoFramesCallback] = None,
|
131
126
|
on_ended: Optional[MediaEndedCallback] = None,
|
132
|
-
) -> AsyncMediaProcessTrack[CallbackAttachableProcessor[FrameT], FrameT]:
|
133
|
-
...
|
127
|
+
) -> AsyncMediaProcessTrack[CallbackAttachableProcessor[FrameT], FrameT]: ...
|
134
128
|
|
135
129
|
|
136
130
|
def create_process_track(
|
@@ -1,10 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"files": {
|
3
|
-
"main.js": "./static/js/main.
|
3
|
+
"main.js": "./static/js/main.9c17b353.js",
|
4
4
|
"index.html": "./index.html",
|
5
|
-
"main.
|
5
|
+
"main.9c17b353.js.map": "./static/js/main.9c17b353.js.map"
|
6
6
|
},
|
7
7
|
"entrypoints": [
|
8
|
-
"static/js/main.
|
8
|
+
"static/js/main.9c17b353.js"
|
9
9
|
]
|
10
10
|
}
|
@@ -1 +1 @@
|
|
1
|
-
<!doctype html><html lang="en"><head><title>Streamlit WebRTC Component</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Streamlit WebRTC Component"/><script defer="defer" src="./static/js/main.
|
1
|
+
<!doctype html><html lang="en"><head><title>Streamlit WebRTC Component</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Streamlit WebRTC Component"/><script defer="defer" src="./static/js/main.9c17b353.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|