Update app.py
Browse files
app.py
CHANGED
@@ -102,7 +102,9 @@ def main():
|
|
102 |
"WebRTC is sendonly and audio frames are visualized with matplotlib (sendonly)"
|
103 |
)
|
104 |
loopback_page = "Simple video and audio loopback (sendrecv)"
|
105 |
-
media_constraints_page =
|
|
|
|
|
106 |
programatically_control_page = "Control the playing state programatically"
|
107 |
app_mode = st.sidebar.selectbox(
|
108 |
"Choose the app mode",
|
@@ -212,6 +214,7 @@ def app_video_filters():
|
|
212 |
mode=WebRtcMode.SENDRECV,
|
213 |
rtc_configuration=RTC_CONFIGURATION,
|
214 |
video_processor_factory=OpenCVVideoProcessor,
|
|
|
215 |
async_processing=True,
|
216 |
)
|
217 |
|
@@ -411,6 +414,7 @@ def app_object_detection():
|
|
411 |
mode=WebRtcMode.SENDRECV,
|
412 |
rtc_configuration=RTC_CONFIGURATION,
|
413 |
video_processor_factory=MobileNetSSDVideoProcessor,
|
|
|
414 |
async_processing=True,
|
415 |
)
|
416 |
|
|
|
102 |
"WebRTC is sendonly and audio frames are visualized with matplotlib (sendonly)"
|
103 |
)
|
104 |
loopback_page = "Simple video and audio loopback (sendrecv)"
|
105 |
+
media_constraints_page = (
|
106 |
+
"Configure media constraints and HTML element styles with loopback (sendrecv)"
|
107 |
+
)
|
108 |
programatically_control_page = "Control the playing state programatically"
|
109 |
app_mode = st.sidebar.selectbox(
|
110 |
"Choose the app mode",
|
|
|
214 |
mode=WebRtcMode.SENDRECV,
|
215 |
rtc_configuration=RTC_CONFIGURATION,
|
216 |
video_processor_factory=OpenCVVideoProcessor,
|
217 |
+
media_stream_constraints={"video": True, "audio": False},
|
218 |
async_processing=True,
|
219 |
)
|
220 |
|
|
|
414 |
mode=WebRtcMode.SENDRECV,
|
415 |
rtc_configuration=RTC_CONFIGURATION,
|
416 |
video_processor_factory=MobileNetSSDVideoProcessor,
|
417 |
+
media_stream_constraints={"video": True, "audio": False},
|
418 |
async_processing=True,
|
419 |
)
|
420 |
|